From 2c4fd24d37198cebd9926b69a2909858b2aece69 Mon Sep 17 00:00:00 2001 From: Finn Evers Date: Wed, 19 Nov 2025 14:22:29 +0100 Subject: [PATCH] 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 --- crates/gpui/src/app.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/gpui/src/app.rs b/crates/gpui/src/app.rs index 9d93de53d06f3130f28b39c7b21611f7996abf89..c042d85a1239dc6723b6501b27690a9f593a021b 100644 --- a/crates/gpui/src/app.rs +++ b/crates/gpui/src/app.rs @@ -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() {