Close application upon closing last tab

This commit is contained in:
olekawaii 2026-03-20 17:04:41 -04:00 committed by Jacob Kauffmann
parent a95a1c1691
commit 48b648500e

View file

@ -2771,9 +2771,9 @@ impl Application for App {
self.tab_model.remove(entity); self.tab_model.remove(entity);
self.update_watcher(); self.update_watcher();
// If that was the last tab, make a new empty one // If that was the last tab, exit the application
if self.tab_model.iter().next().is_none() { if self.tab_model.iter().next().is_none() {
self.open_tab(None); return self.update(Message::QuitForce)
} }
// Close PromptSaveClose dialog if open for this entity // Close PromptSaveClose dialog if open for this entity