Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Set destructive action only when prompt level is set to `Destructive` (#11154)
Bennet Bo Fenner45d217f6e0a2
diff --git a/crates/gpui/src/platform/mac/window.rs b/crates/gpui/src/platform/mac/window.rsindex 7b57c576f1c..22ee22b50ba 100644--- a/crates/gpui/src/platform/mac/window.rs+++ b/crates/gpui/src/platform/mac/window.rs@@ -926,7 +926,6 @@ impl PlatformWindow for MacWindow {if let Some((ix, answer)) = latest_non_cancel_label {let button: id = msg_send![alert, addButtonWithTitle: ns_string(answer)];let _: () = msg_send![button, setTag: ix as NSInteger];- let _: () = msg_send![button, setHasDestructiveAction: YES];if level == PromptLevel::Destructive {let _: () = msg_send![button, setHasDestructiveAction: YES];}