Fix persistent public key setting

Closes #464
This commit is contained in:
Floris Bos 2022-07-26 23:20:42 +02:00
parent 152831e72f
commit a46fd2d1fa

View file

@ -454,12 +454,6 @@ Popup {
fieldHostname.text = settings.hostname fieldHostname.text = settings.hostname
chkHostname.checked = true chkHostname.checked = true
} }
if ('sshAuthorizedKeys' in settings) {
fieldPublicKey.text = settings.sshAuthorizedKeys
radioPubKeyAuthentication.checked = true
chkSSH.checked = true
}
if ('sshUserPassword' in settings) { if ('sshUserPassword' in settings) {
fieldUserPassword.text = settings.sshUserPassword fieldUserPassword.text = settings.sshUserPassword
fieldUserPassword.alreadyCrypted = true fieldUserPassword.alreadyCrypted = true
@ -471,6 +465,12 @@ Popup {
radioPasswordAuthentication.checked = true radioPasswordAuthentication.checked = true
} }
} }
if ('sshAuthorizedKeys' in settings) {
fieldPublicKey.text = settings.sshAuthorizedKeys
radioPubKeyAuthentication.checked = true
chkSSH.checked = true
}
if ('sshUserName' in settings) { if ('sshUserName' in settings) {
fieldUserName.text = settings.sshUserName fieldUserName.text = settings.sshUserName
chkSetUser.checked = true chkSetUser.checked = true