From a46fd2d1fa00f151f3ea864d3a4a730672f53d65 Mon Sep 17 00:00:00 2001 From: Floris Bos Date: Tue, 26 Jul 2022 23:20:42 +0200 Subject: [PATCH] Fix persistent public key setting Closes #464 --- src/OptionsPopup.qml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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