mirror of
https://github.com/veeso/termscp.git
synced 2026-04-06 18:21:44 -07:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user