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.

recent_projects: Close remote projects window on button press (#58889)

Matei Opreae044074eb2f9
diff --git a/crates/recent_projects/src/remote_servers.rs b/crates/recent_projects/src/remote_servers.rs
index c1b0ce24cab..86c4b29b808 100644
--- a/crates/recent_projects/src/remote_servers.rs
+++ b/crates/recent_projects/src/remote_servers.rs
@@ -1624,6 +1624,7 @@ impl RemoteServerProjects {
.on_click(cx.listener({
let connection = connection.clone();
move |this, _, window, cx| {
+ cx.emit(DismissEvent);
this.create_remote_project(
index,
connection.clone().into(),