Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Do not show tooltip for editor controls if clicked (#10679)
Thorsten Ball62171387f631
diff --git a/crates/quick_action_bar/src/quick_action_bar.rs b/crates/quick_action_bar/src/quick_action_bar.rsindex 6485ee13015..620c21c807a 100644--- a/crates/quick_action_bar/src/quick_action_bar.rs+++ b/crates/quick_action_bar/src/quick_action_bar.rs@@ -180,7 +180,9 @@ impl Render for QuickActionBar {quick_action_bar.toggle_settings_menu = Some(menu);})})- .tooltip(|cx| Tooltip::text("Editor Controls", cx));+ .when(self.toggle_settings_menu.is_none(), |this| {+ this.tooltip(|cx| Tooltip::text("Editor Controls", cx))+ });h_flex().id("quick action bar")