Skip to content

Commit 49257dc

Browse files
committed
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.
1 parent dc9eec6 commit 49257dc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/app.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,9 @@ impl App {
234234
if config.project_dir.is_some() {
235235
config.config_change = true;
236236
config.watcher_change = true;
237-
app.modified.store(true, Ordering::Relaxed);
237+
}
238+
if config.selected_obj.is_some() {
239+
config.queue_build = true;
238240
}
239241
app.view_state.config_state.queue_check_update = config.auto_update_check;
240242
app.config = Arc::new(RwLock::new(config));

0 commit comments

Comments
 (0)