remote servers: Always dismiss modal (#19831)
We display the errors in another window anyway and if the connection takes a while it looks like a bug that the modal stays open. Release Notes: - N/A Co-authored-by: Bennet <bennet@zed.dev>
This commit is contained in:
parent
e0ea9a9ab5
commit
67eb652bf1
1 changed files with 2 additions and 5 deletions
|
@ -738,7 +738,8 @@ impl RemoteServerProjects {
|
|||
};
|
||||
let project = project.clone();
|
||||
let server = server.clone();
|
||||
cx.spawn(|remote_server_projects, mut cx| async move {
|
||||
cx.emit(DismissEvent);
|
||||
cx.spawn(|_, mut cx| async move {
|
||||
let result = open_ssh_project(
|
||||
server.into(),
|
||||
project.paths.into_iter().map(PathBuf::from).collect(),
|
||||
|
@ -757,10 +758,6 @@ impl RemoteServerProjects {
|
|||
)
|
||||
.await
|
||||
.ok();
|
||||
} else {
|
||||
remote_server_projects
|
||||
.update(&mut cx, |_, cx| cx.emit(DismissEvent))
|
||||
.ok();
|
||||
}
|
||||
})
|
||||
.detach();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue