From 76c933864809557cc1af0eedc16baf3f3e427720 Mon Sep 17 00:00:00 2001 From: b4n6-b4n6 Date: Sat, 31 Aug 2024 10:59:46 +0700 Subject: [PATCH] Fix 'Create wallet' button getting stuck until restart when invalid seed is used --- wizard/WizardRestoreWallet4.qml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/wizard/WizardRestoreWallet4.qml b/wizard/WizardRestoreWallet4.qml index 9f87e77b0b..e29c357cfc 100644 --- a/wizard/WizardRestoreWallet4.qml +++ b/wizard/WizardRestoreWallet4.qml @@ -82,11 +82,13 @@ Rectangle { btnNext.enabled = false; wizardController.wizardStateView.wizardRestoreWallet2View.pwField = ""; wizardController.wizardStateView.wizardRestoreWallet2View.pwConfirmField = ""; - wizardController.recoveryWallet(); - wizardController.writeWallet(function() { - wizardController.useMoneroClicked(); - btnNext.enabled = true; - }); + var recoveryResult = wizardController.recoveryWallet(); + if (recoveryResult) { + wizardController.writeWallet(function () { + wizardController.useMoneroClicked(); + }); + } + btnNext.enabled = true; } } }