Clipp suggested this
This commit is contained in:
@@ -20,8 +20,8 @@ pub enum CommandErrors {
|
||||
NoIwad,
|
||||
}
|
||||
|
||||
impl CommandManager {
|
||||
pub fn new() -> Self {
|
||||
impl Default for CommandManager {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
launcher: None,
|
||||
iwad: None,
|
||||
@@ -33,6 +33,9 @@ impl CommandManager {
|
||||
command_string: "".to_string(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl CommandManager {
|
||||
pub fn remove_iwad(&mut self) {
|
||||
self.iwad = None;
|
||||
self.update_command();
|
||||
|
||||
Reference in New Issue
Block a user