diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2022-03-02 18:59:24 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2022-03-02 18:59:24 -0500 |
| commit | 8ece450f18446f22f595bd789513d6d4123ceaf4 (patch) | |
| tree | f2d5adfbd19c8de81b540b361460228ff3fdf309 /wizard | |
| parent | ced654707d2c2344b299bf77a23ea984ea17bfa2 (diff) | |
| parent | 599033815a8ec77f39455f7b1ba032eb59bf2330 (diff) | |
| download | monzero-gui-8ece450f18446f22f595bd789513d6d4123ceaf4.tar.gz monzero-gui-8ece450f18446f22f595bd789513d6d4123ceaf4.tar.xz monzero-gui-8ece450f18446f22f595bd789513d6d4123ceaf4.zip | |
Merge pull request #3825
5990338 WizardRestoreWallet4, WizardCreateWallet4: disable double-click on 'Create wallet' button (rating89us)
Diffstat (limited to 'wizard')
| -rw-r--r-- | wizard/WizardController.qml | 2 | ||||
| -rw-r--r-- | wizard/WizardCreateWallet4.qml | 4 | ||||
| -rw-r--r-- | wizard/WizardRestoreWallet4.qml | 4 |
3 files changed, 10 insertions, 0 deletions
diff --git a/wizard/WizardController.qml b/wizard/WizardController.qml index 72a108ce..be4e5334 100644 --- a/wizard/WizardController.qml +++ b/wizard/WizardController.qml @@ -349,6 +349,8 @@ Rectangle { const handler = function(success) { if (!success) { appWindow.showStatusMessage(qsTr("Failed to store the wallet"), 3); + wizardStateView.wizardRestoreWallet4View.wizardNav.btnNext.enabled = true; + wizardStateView.wizardCreateWallet4View.wizardNav.btnNext.enabled = true; return; } diff --git a/wizard/WizardCreateWallet4.qml b/wizard/WizardCreateWallet4.qml index 33c1e926..8a706bc3 100644 --- a/wizard/WizardCreateWallet4.qml +++ b/wizard/WizardCreateWallet4.qml @@ -38,6 +38,7 @@ Rectangle { color: "transparent" property alias pageHeight: pageRoot.height + property alias wizardNav: wizardNav property string viewName: "wizardCreateWallet4" ColumnLayout { @@ -64,6 +65,7 @@ Rectangle { WizardSummary {} WizardNav { + id: wizardNav Layout.topMargin: 24 btnNextText: qsTr("Create wallet") + translationManager.emptyString progressSteps: appWindow.walletMode <= 1 ? 3 : 4 @@ -77,11 +79,13 @@ Rectangle { } } onNextClicked: { + btnNext.enabled = false; wizardController.wizardStateView.wizardCreateWallet2View.pwField = ""; wizardController.wizardStateView.wizardCreateWallet2View.pwConfirmField = ""; wizardController.writeWallet(function() { wizardController.useMoneroClicked(); wizardController.walletOptionsIsRecoveringFromDevice = false; + btnNext.enabled = true; }); } } diff --git a/wizard/WizardRestoreWallet4.qml b/wizard/WizardRestoreWallet4.qml index 091c143f..4d4c9fdb 100644 --- a/wizard/WizardRestoreWallet4.qml +++ b/wizard/WizardRestoreWallet4.qml @@ -38,6 +38,7 @@ Rectangle { color: "transparent" property alias pageHeight: pageRoot.height + property alias wizardNav: wizardNav property string viewName: "wizardRestoreWallet4" ColumnLayout { @@ -64,6 +65,7 @@ Rectangle { WizardSummary {} WizardNav { + id: wizardNav Layout.topMargin: 24 btnNextText: qsTr("Create wallet") + translationManager.emptyString progressSteps: appWindow.walletMode <= 1 ? 3 : 4 @@ -77,11 +79,13 @@ Rectangle { } } onNextClicked: { + btnNext.enabled = false; wizardController.wizardStateView.wizardRestoreWallet2View.pwField = ""; wizardController.wizardStateView.wizardRestoreWallet2View.pwConfirmField = ""; wizardController.recoveryWallet(); wizardController.writeWallet(function() { wizardController.useMoneroClicked(); + btnNext.enabled = true; }); } } |
