Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Dismiss dropdowns on click out
Piotr Osiewicz026ad191ebef
diff --git a/crates/collab_ui/src/collab_titlebar_item.rs b/crates/collab_ui/src/collab_titlebar_item.rsindex 0857b2b79a0..ea90a879cec 100644--- a/crates/collab_ui/src/collab_titlebar_item.rs+++ b/crates/collab_ui/src/collab_titlebar_item.rs@@ -385,7 +385,11 @@ impl CollabTitlebarItem {.with_height(theme.contacts_popover.height)}).on_click(MouseButton::Left, |_, _, _| {})- .on_down_out(MouseButton::Left, move |_, _, cx| cx.emit(()))+ .on_down_out(MouseButton::Left, move |_, this, cx| {+ this.branch_popover.take();+ cx.emit(());+ cx.notify();+ }).into_any();Overlay::new(child)@@ -415,7 +419,11 @@ impl CollabTitlebarItem {.with_height(theme.contacts_popover.height)}).on_click(MouseButton::Left, |_, _, _| {})- .on_down_out(MouseButton::Left, move |_, _, cx| cx.emit(()))+ .on_down_out(MouseButton::Left, move |_, this, cx| {+ this.project_popover.take();+ cx.emit(());+ cx.notify();+ }).into_any();Overlay::new(child)