Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

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

Finn Evers2c4fd24d3719
diff --git a/crates/gpui/src/app.rs b/crates/gpui/src/app.rs
index 9d93de53d06..c042d85a123 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() {