Close application upon closing last tab
This commit is contained in:
parent
a95a1c1691
commit
48b648500e
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue