gpui: Restore last window close behavior on macOS (#43058)

Follow-up to https://github.com/zed-industries/zed/pull/42391

Release Notes:

- Fixed an issue where Zed did not respect the `on_last_window_closed`
setting on macOS
This commit is contained in:
Finn Evers
2025-11-19 13:22:29 +00:00
committed by GitHub
parent 3125e78904
commit 2c4fd24d37
+1 -1
View File
@@ -1410,7 +1410,7 @@ impl App {
let quit_on_empty = match cx.quit_mode {
QuitMode::Explicit => false,
QuitMode::LastWindowClosed => true,
QuitMode::Default => !cfg!(macos),
QuitMode::Default => cfg!(not(target_os = "macos")),
};
if quit_on_empty && cx.windows.is_empty() {