mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-23 20:20:02 +00:00
WizardAskPassword: clean password fields when clicking on Back button
This commit is contained in:
parent
c72729fa5d
commit
843536c7a1
3 changed files with 7 additions and 0 deletions
|
@ -38,6 +38,7 @@ ColumnLayout {
|
||||||
id: root
|
id: root
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
property alias password: passwordInput.text
|
property alias password: passwordInput.text
|
||||||
|
property alias passwordConfirm: passwordInputConfirm.text
|
||||||
property int passwordFill: 0
|
property int passwordFill: 0
|
||||||
property string passwordStrengthText: qsTr("Strength: ") + translationManager.emptyString
|
property string passwordStrengthText: qsTr("Strength: ") + translationManager.emptyString
|
||||||
|
|
||||||
|
|
|
@ -64,6 +64,9 @@ Rectangle {
|
||||||
progress: 1
|
progress: 1
|
||||||
btnNext.enabled: passwordFields.calcStrengthAndVerify();
|
btnNext.enabled: passwordFields.calcStrengthAndVerify();
|
||||||
onPrevClicked: {
|
onPrevClicked: {
|
||||||
|
passwordFields.password = "";
|
||||||
|
passwordFields.passwordConfirm = "";
|
||||||
|
|
||||||
if(wizardController.walletOptionsIsRecoveringFromDevice){
|
if(wizardController.walletOptionsIsRecoveringFromDevice){
|
||||||
wizardStateView.state = "wizardCreateDevice1";
|
wizardStateView.state = "wizardCreateDevice1";
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -67,6 +67,9 @@ Rectangle {
|
||||||
progress: 1
|
progress: 1
|
||||||
btnNext.enabled: passwordFields.calcStrengthAndVerify();
|
btnNext.enabled: passwordFields.calcStrengthAndVerify();
|
||||||
onPrevClicked: {
|
onPrevClicked: {
|
||||||
|
passwordFields.password = "";
|
||||||
|
passwordFields.passwordConfirm = "";
|
||||||
|
|
||||||
wizardStateView.state = "wizardRestoreWallet1";
|
wizardStateView.state = "wizardRestoreWallet1";
|
||||||
}
|
}
|
||||||
onNextClicked: {
|
onNextClicked: {
|
||||||
|
|
Loading…
Reference in a new issue