Added some a potential way forward with config and add/move/nothing
This commit is contained in:
@@ -74,7 +74,7 @@ impl RustDoomLauncher {
|
||||
fn get_config_file_stuff(&mut self) {
|
||||
self.config = match load_config(&self.config_filename) {
|
||||
Ok(c) => Some(c),
|
||||
Err(e) => None,
|
||||
Err(_e) => None,
|
||||
};
|
||||
if let Some(config) = &self.config {
|
||||
if let Some(iwads) = &config.iwads {
|
||||
@@ -391,8 +391,7 @@ impl eframe::App for RustDoomLauncher {
|
||||
iwads: Some(self.iwad_manager.selectable.clone()),
|
||||
pwads: Some(self.pwad_manager.selectable.clone()),
|
||||
launchers: Some(self.launcher_manager.selectable.clone()),
|
||||
iwads_added_folder: None,
|
||||
iwads_removed_folder: None,
|
||||
..Default::default()
|
||||
};
|
||||
save_config(&self.config_filename, &config).unwrap();
|
||||
frame.close();
|
||||
|
||||
Reference in New Issue
Block a user