Improve import keys password popup

This commit is contained in:
miruka
2019-08-27 22:25:13 -04:00
parent 05b248e31a
commit ebfebbeae1
8 changed files with 160 additions and 34 deletions

View File

@@ -63,14 +63,16 @@ HColumnLayout {
HPasswordPopup {
property url file: ""
function verifyPassword(pass) {
return py.callSync(
"check_exported_keys_password", [file.toString(), pass]
)
}
id: importPasswordPopup
label.text: qsTr(
"Please enter the passphrase that was used to protect this " +
"file.\n\n" +
"The import can take a few minutes. " +
"You can leave the account settings page while it is running. " +
"Messages may not be sent or received until the operation is done."
"Please enter the passphrase that was used to protect this file:"
)
onPasswordChanged: importKeys(file, password)
onAcceptedPasswordChanged: importKeys(file, password)
}
}