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 menu navigation in remote projects modal (#39965)

Cole Miller5f857ffbb128
diff --git a/crates/recent_projects/src/remote_servers.rs b/crates/recent_projects/src/remote_servers.rs
index cf03d226986..7a144308f93 100644
--- a/crates/recent_projects/src/remote_servers.rs
+++ b/crates/recent_projects/src/remote_servers.rs
@@ -2030,8 +2030,11 @@ impl RemoteServerProjects {
)
.into_any_element(),
)
- .entry(state.add_new_server.clone())
- .entry(state.add_new_wsl.clone());
+ .entry(state.add_new_server.clone());
+
+ if cfg!(target_os = "windows") {
+ modal_section = modal_section.entry(state.add_new_wsl.clone());
+ }
for server in &state.servers {
match server {