mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-29 04:14:52 +03:00
Don't clear password prompt before remembering
This commit is contained in:
parent
7fef2be38d
commit
29ec5db8af
@ -11,6 +11,14 @@ DefaultDialog {
|
||||
property string password: password.text
|
||||
property bool remember: rememberPassword.checked
|
||||
|
||||
onVisibilityChanged: {
|
||||
// Clear the password from old canceled entries
|
||||
// when a new dialog is shown.
|
||||
if (visible) {
|
||||
clear()
|
||||
}
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
RowLayout {
|
||||
Label {
|
||||
@ -62,5 +70,6 @@ DefaultDialog {
|
||||
|
||||
function clear() {
|
||||
password.text = ''
|
||||
rememberPassword.checked = false
|
||||
}
|
||||
}
|
||||
|
@ -521,7 +521,6 @@ ApplicationWindow {
|
||||
} else {
|
||||
device.validate(passwordPrompt.password)
|
||||
}
|
||||
passwordPrompt.clear()
|
||||
}
|
||||
|
||||
function deleteSelectedCredential() {
|
||||
|
Loading…
Reference in New Issue
Block a user