Do not show tooltip for editor controls if clicked (#10679)

This avoids the tooltip showing up when the context menu is visible.

It fixes this:

![screenshot-2024-04-17-13 17
41@2x](https://github.com/zed-industries/zed/assets/1185253/373bb70e-9c7f-4b9f-a928-8206697c6039)


Release Notes:

- N/A
This commit is contained in:
Thorsten Ball 2024-04-17 13:20:47 +02:00 committed by GitHub
parent 47ad010901
commit 62171387f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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")