From 48b648500e49f6d72e5e9f86ae1c9bbdf6b866af Mon Sep 17 00:00:00 2001 From: olekawaii Date: Fri, 20 Mar 2026 17:04:41 -0400 Subject: [PATCH] Close application upon closing last tab --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 873f8dd..04713a0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2771,9 +2771,9 @@ impl Application for App { self.tab_model.remove(entity); 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() { - self.open_tab(None); + return self.update(Message::QuitForce) } // Close PromptSaveClose dialog if open for this entity