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.

Make project dropdown exclusive wrt git menu

Piotr Osiewicz818ddbc7031f
diff --git a/crates/collab_ui/src/collab_titlebar_item.rs b/crates/collab_ui/src/collab_titlebar_item.rs
index 8dccf2a71a5..c78ce2f4e1d 100644
--- a/crates/collab_ui/src/collab_titlebar_item.rs
+++ b/crates/collab_ui/src/collab_titlebar_item.rs
@@ -439,6 +439,7 @@ impl CollabTitlebarItem {
cx.notify();
})
.detach();
+ self.project_popover.take();
self.branch_popover = Some(view);
}
}
@@ -447,7 +448,6 @@ impl CollabTitlebarItem {
}
pub fn toggle_project_menu(&mut self, _: &ToggleProjectMenu, cx: &mut ViewContext<Self>) {
- log::error!("Toggling project menu");
if self.project_popover.take().is_none() {
let view = cx.add_view(|cx| build_recent_projects(self.workspace.clone(), cx));
cx.subscribe(&view, |this, _, event, cx| {
@@ -460,6 +460,7 @@ impl CollabTitlebarItem {
cx.notify();
})
.detach();
+ self.branch_popover.take();
self.project_popover = Some(view);
}