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: Fix built-in prompt not capturing focus when removing remote servers (#60965)

Counterfeit IQa57ba9b17c43
diff --git a/crates/recent_projects/src/remote_servers.rs b/crates/recent_projects/src/remote_servers.rs
index 0e2823892c0..9861d728706 100644
--- a/crates/recent_projects/src/remote_servers.rs
+++ b/crates/recent_projects/src/remote_servers.rs
@@ -2723,7 +2723,6 @@ impl RemoteServerProjects {
let distro_name = distro_name.clone();
move |_, _: &menu::Confirm, window, cx| {
remove_wsl_distro(cx.entity(), index, distro_name.clone(), window, cx);
- cx.focus_self(window);
}
}))
.child(
@@ -2735,7 +2734,6 @@ impl RemoteServerProjects {
.child(Label::new("Remove Distro").color(Color::Error))
.on_click(cx.listener(move |_, _, window, cx| {
remove_wsl_distro(cx.entity(), index, distro_name.clone(), window, cx);
- cx.focus_self(window);
})),
)
})
@@ -2880,7 +2878,6 @@ impl RemoteServerProjects {
window,
cx,
);
- cx.focus_self(window);
}
}))
.child(
@@ -2898,7 +2895,6 @@ impl RemoteServerProjects {
window,
cx,
);
- cx.focus_self(window);
})),
)
})