Make closing the SSH modal equivalent to cancelling the SSH connection task (#19568)
TODO: - [x] Fix focus not being on the modal initially Release Notes: - N/A --------- Co-authored-by: Trace <violet.white.batt@gmail.com>
This commit is contained in:
parent
f951410ef0
commit
33197608ed
5 changed files with 108 additions and 56 deletions
|
@ -547,7 +547,7 @@ impl RemoteServerProjects {
|
|||
})
|
||||
.ok();
|
||||
|
||||
let Some(session) = session else {
|
||||
let Some(Some(session)) = session else {
|
||||
workspace
|
||||
.update(&mut cx, |workspace, cx| {
|
||||
let weak = cx.view().downgrade();
|
||||
|
@ -1071,7 +1071,7 @@ impl RemoteServerProjects {
|
|||
);
|
||||
|
||||
cx.spawn(|mut cx| async move {
|
||||
if confirmation.await.ok() == Some(0) {
|
||||
if confirmation.await.ok() == Some(1) {
|
||||
remote_servers
|
||||
.update(&mut cx, |this, cx| {
|
||||
this.delete_ssh_server(index, cx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue