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.

Add support for macOS' "Do Nothing" window setting (#39311)

Mario Kozjakfb343a774391
diff --git a/crates/gpui/src/platform/mac/window.rs b/crates/gpui/src/platform/mac/window.rs
index d5b1ea900d8..1e822a5b728 100644
--- a/crates/gpui/src/platform/mac/window.rs
+++ b/crates/gpui/src/platform/mac/window.rs
@@ -1520,6 +1520,9 @@ impl PlatformWindow for MacWindow {
};
match action_str.as_ref() {
+ "None" => {
+ // "Do Nothing" selected, so do no action
+ }
"Minimize" => {
window.miniaturize_(nil);
}