From 401637a347a860d12f2b15e45b8552c5badeeeba Mon Sep 17 00:00:00 2001 From: "zed-zippy[bot]" <234243425+zed-zippy[bot]@users.noreply.github.com> Date: Wed, 19 Nov 2025 13:36:13 +0000 Subject: [PATCH] gpui: Restore last window close behavior on macOS (#43058) (cherry-pick to preview) (#43062) Cherry-pick of #43058 to preview ---- 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 Co-authored-by: Finn Evers --- 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 864968b9e7a9ad862d9b67a19cc8897524dffb9e..ee0bcab526baf54eab53cd064e8302c3e2fbe082 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() {