diff --git a/src/OptionsPopup.qml b/src/OptionsPopup.qml index ffb5554..b637f9a 100644 --- a/src/OptionsPopup.qml +++ b/src/OptionsPopup.qml @@ -454,12 +454,6 @@ Popup { fieldHostname.text = settings.hostname chkHostname.checked = true } - if ('sshAuthorizedKeys' in settings) { - fieldPublicKey.text = settings.sshAuthorizedKeys - radioPubKeyAuthentication.checked = true - chkSSH.checked = true - } - if ('sshUserPassword' in settings) { fieldUserPassword.text = settings.sshUserPassword fieldUserPassword.alreadyCrypted = true @@ -471,6 +465,12 @@ Popup { radioPasswordAuthentication.checked = true } } + if ('sshAuthorizedKeys' in settings) { + fieldPublicKey.text = settings.sshAuthorizedKeys + radioPubKeyAuthentication.checked = true + chkSSH.checked = true + } + if ('sshUserName' in settings) { fieldUserName.text = settings.sshUserName chkSetUser.checked = true