fix: issue 277 Fix a bug in the configuration page, which caused being stuck if the added SSH key was empty

This commit is contained in:
veeso
2024-10-02 12:44:35 +02:00
parent 14ac10547c
commit 31c5ad7534
3 changed files with 17 additions and 15 deletions

View File

@@ -225,9 +225,14 @@ impl SetupActivity {
}
}
SshMsg::SaveSshKey => {
self.action_new_ssh_key();
let res = self.action_new_ssh_key();
self.umount_new_ssh_key();
self.reload_ssh_keys();
match res {
Ok(_) => {
self.reload_ssh_keys();
}
Err(err) => self.mount_error(&err),
}
}
SshMsg::ShowDelSshKeyPopup => {
self.mount_del_ssh_key();