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

Finn Evers created

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

Change summary

crates/gpui/src/app.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

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() {