mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-19 14:00:29 +00:00
core: quit-after-last-window-closed works properly with "exit"
Fixes #1085 This moves the logic of exiting when there are no surfaces left fully to apprt and away from the core.
This commit is contained in:
@@ -103,8 +103,8 @@ pub fn tick(self: *App, rt_app: *apprt.App) !bool {
|
||||
// doesn't want to quit, then we can't force it to.
|
||||
defer self.quit = false;
|
||||
|
||||
// We quit if our quit flag is on or if we have closed all surfaces.
|
||||
return self.quit or self.surfaces.items.len == 0;
|
||||
// We quit if our quit flag is on
|
||||
return self.quit;
|
||||
}
|
||||
|
||||
/// Update the configuration associated with the app. This can only be
|
||||
|
||||
Reference in New Issue
Block a user