mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-05-10 22:32:18 +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 alias pageHeight: pageRoot.height
|
||||||
property string viewName: "wizardCreateWallet2"
|
property string viewName: "wizardCreateWallet2"
|
||||||
|
|
||||||
|
function onPageCompleted() {
|
||||||
|
passwordFields.password = Qt.binding(function() { return wizardController.walletOptionsPassword })
|
||||||
|
passwordFields.passwordConfirm = Qt.binding(function() { return wizardController.walletOptionsPassword })
|
||||||
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: pageRoot
|
id: pageRoot
|
||||||
Layout.alignment: Qt.AlignHCenter;
|
Layout.alignment: Qt.AlignHCenter;
|
||||||
|
@ -64,8 +69,7 @@ Rectangle {
|
||||||
progress: 1
|
progress: 1
|
||||||
btnNext.enabled: passwordFields.calcStrengthAndVerify();
|
btnNext.enabled: passwordFields.calcStrengthAndVerify();
|
||||||
onPrevClicked: {
|
onPrevClicked: {
|
||||||
passwordFields.password = "";
|
wizardController.walletOptionsPassword = '';
|
||||||
passwordFields.passwordConfirm = "";
|
|
||||||
|
|
||||||
if(wizardController.walletOptionsIsRecoveringFromDevice){
|
if(wizardController.walletOptionsIsRecoveringFromDevice){
|
||||||
wizardStateView.state = "wizardCreateDevice1";
|
wizardStateView.state = "wizardCreateDevice1";
|
||||||
|
|
|
@ -42,6 +42,11 @@ Rectangle {
|
||||||
property string viewName: "wizardRestoreWallet2"
|
property string viewName: "wizardRestoreWallet2"
|
||||||
property int recoveryMode: 1
|
property int recoveryMode: 1
|
||||||
|
|
||||||
|
function onPageCompleted() {
|
||||||
|
passwordFields.password = Qt.binding(function() { return wizardController.walletOptionsPassword })
|
||||||
|
passwordFields.passwordConfirm = Qt.binding(function() { return wizardController.walletOptionsPassword })
|
||||||
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: pageRoot
|
id: pageRoot
|
||||||
Layout.alignment: Qt.AlignHCenter;
|
Layout.alignment: Qt.AlignHCenter;
|
||||||
|
@ -67,9 +72,7 @@ Rectangle {
|
||||||
progress: 1
|
progress: 1
|
||||||
btnNext.enabled: passwordFields.calcStrengthAndVerify();
|
btnNext.enabled: passwordFields.calcStrengthAndVerify();
|
||||||
onPrevClicked: {
|
onPrevClicked: {
|
||||||
passwordFields.password = "";
|
wizardController.walletOptionsPassword = '';
|
||||||
passwordFields.passwordConfirm = "";
|
|
||||||
|
|
||||||
wizardStateView.state = "wizardRestoreWallet1";
|
wizardStateView.state = "wizardRestoreWallet1";
|
||||||
}
|
}
|
||||||
onNextClicked: {
|
onNextClicked: {
|
||||||
|
|
Loading…
Reference in a new issue