mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-05-01 18:12:14 +00:00
WizardCreateWallet2, WizardRestoreWallet2: clean password fields when clicking on back button
This commit is contained in:
parent
bddb9b0050
commit
15d0688e02
2 changed files with 12 additions and 5 deletions
|
@ -39,6 +39,11 @@ Rectangle {
|
|||
property alias pageHeight: pageRoot.height
|
||||
property string viewName: "wizardCreateWallet2"
|
||||
|
||||
function onPageCompleted() {
|
||||
passwordFields.password = Qt.binding(function() { return wizardController.walletOptionsPassword })
|
||||
passwordFields.passwordConfirm = Qt.binding(function() { return wizardController.walletOptionsPassword })
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
id: pageRoot
|
||||
Layout.alignment: Qt.AlignHCenter;
|
||||
|
@ -64,8 +69,7 @@ Rectangle {
|
|||
progress: 1
|
||||
btnNext.enabled: passwordFields.calcStrengthAndVerify();
|
||||
onPrevClicked: {
|
||||
passwordFields.password = "";
|
||||
passwordFields.passwordConfirm = "";
|
||||
wizardController.walletOptionsPassword = '';
|
||||
|
||||
if(wizardController.walletOptionsIsRecoveringFromDevice){
|
||||
wizardStateView.state = "wizardCreateDevice1";
|
||||
|
|
|
@ -42,6 +42,11 @@ Rectangle {
|
|||
property string viewName: "wizardRestoreWallet2"
|
||||
property int recoveryMode: 1
|
||||
|
||||
function onPageCompleted() {
|
||||
passwordFields.password = Qt.binding(function() { return wizardController.walletOptionsPassword })
|
||||
passwordFields.passwordConfirm = Qt.binding(function() { return wizardController.walletOptionsPassword })
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
id: pageRoot
|
||||
Layout.alignment: Qt.AlignHCenter;
|
||||
|
@ -67,9 +72,7 @@ Rectangle {
|
|||
progress: 1
|
||||
btnNext.enabled: passwordFields.calcStrengthAndVerify();
|
||||
onPrevClicked: {
|
||||
passwordFields.password = "";
|
||||
passwordFields.passwordConfirm = "";
|
||||
|
||||
wizardController.walletOptionsPassword = '';
|
||||
wizardStateView.state = "wizardRestoreWallet1";
|
||||
}
|
||||
onNextClicked: {
|
||||
|
|
Loading…
Reference in a new issue