mirror of https://github.com/encounter/objdiff.git
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:
parent
dc9eec66b0
commit
49257dc73c
|
@ -234,7 +234,9 @@ impl App {
|
||||||
if config.project_dir.is_some() {
|
if config.project_dir.is_some() {
|
||||||
config.config_change = true;
|
config.config_change = true;
|
||||||
config.watcher_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.view_state.config_state.queue_check_update = config.auto_update_check;
|
||||||
app.config = Arc::new(RwLock::new(config));
|
app.config = Arc::new(RwLock::new(config));
|
||||||
|
|
Loading…
Reference in New Issue