Better logic to reload previous file on app start

Before, if "Rebuild on changes" was disabled, the last file
wouldn't be properly loaded when starting.
This commit is contained in:
Luke Street 2023-11-21 11:49:26 -05:00
parent dc9eec66b0
commit 49257dc73c
1 changed files with 3 additions and 1 deletions

View File

@ -234,7 +234,9 @@ impl App {
if config.project_dir.is_some() {
config.config_change = true;
config.watcher_change = true;
app.modified.store(true, Ordering::Relaxed);
}
if config.selected_obj.is_some() {
config.queue_build = true;
}
app.view_state.config_state.queue_check_update = config.auto_update_check;
app.config = Arc::new(RwLock::new(config));