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_macos: Fix compilation on x86_64 (#52028)

Lukas Wirthb04e7f0930e7
diff --git a/crates/gpui_macos/src/platform.rs b/crates/gpui_macos/src/platform.rs
index 8a502612a37..bce98b2ce99 100644
--- a/crates/gpui_macos/src/platform.rs
+++ b/crates/gpui_macos/src/platform.rs
@@ -395,7 +395,7 @@ impl MacPlatform {
if *checked {
item.setState_(NSVisualEffectState::Active);
}
- item.setEnabled_(!disabled);
+ item.setEnabled_(if *disabled { NO } else { YES });
let tag = actions.len() as NSInteger;
let _: () = msg_send![item, setTag: tag];