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.

Fix Collab context menu dismissal (#11414)

moshyfawn2e6d044bac42
diff --git a/crates/collab_ui/src/collab_panel.rs b/crates/collab_ui/src/collab_panel.rs
index d70bd48f577..5b3687f0db4 100644
--- a/crates/collab_ui/src/collab_panel.rs
+++ b/crates/collab_ui/src/collab_panel.rs
@@ -1408,6 +1408,11 @@ impl CollabPanel {
});
}
+ if self.context_menu.is_some() {
+ self.context_menu.take();
+ cx.notify();
+ }
+
self.update_entries(false, cx);
}