mirror of
https://github.com/encounter/objdiff.git
synced 2025-06-07 15:13:47 +00:00
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() {
|
||||
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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user