mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2025-01-06 02:37:21 +03:00
Clear set password dialog
This commit is contained in:
parent
5e7c103ccb
commit
287a08c4e7
@ -91,6 +91,7 @@ ApplicationWindow {
|
||||
onAccepted: {
|
||||
trySetPassword()
|
||||
passwordUpdated.open()
|
||||
setPassword.clear()
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -47,6 +47,7 @@ DefaultDialog {
|
||||
}
|
||||
Button {
|
||||
text: qsTr("Cancel")
|
||||
id: cancelBtn
|
||||
onClicked: close()
|
||||
KeyNavigation.tab: password
|
||||
Keys.onEscapePressed: close()
|
||||
|
@ -10,6 +10,7 @@ DefaultDialog {
|
||||
modality: Qt.ApplicationModal
|
||||
property string newPassword: newPassword.text
|
||||
property bool matchingPasswords: newPassword.text === confirmPassword.text
|
||||
onClosing: clear()
|
||||
|
||||
ColumnLayout {
|
||||
anchors.fill: parent
|
||||
@ -67,4 +68,9 @@ DefaultDialog {
|
||||
accepted()
|
||||
}
|
||||
}
|
||||
|
||||
function clear() {
|
||||
newPassword.text = ""
|
||||
confirmPassword.text = ""
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user