Fix 'Create wallet' button getting stuck until restart when invalid seed is used

This commit is contained in:
b4n6-b4n6 2024-08-31 10:59:46 +07:00
parent 08e2eafb7c
commit 76c9338648

View file

@ -82,11 +82,13 @@ Rectangle {
btnNext.enabled = false; btnNext.enabled = false;
wizardController.wizardStateView.wizardRestoreWallet2View.pwField = ""; wizardController.wizardStateView.wizardRestoreWallet2View.pwField = "";
wizardController.wizardStateView.wizardRestoreWallet2View.pwConfirmField = ""; wizardController.wizardStateView.wizardRestoreWallet2View.pwConfirmField = "";
wizardController.recoveryWallet(); var recoveryResult = wizardController.recoveryWallet();
wizardController.writeWallet(function() { if (recoveryResult) {
wizardController.useMoneroClicked(); wizardController.writeWallet(function () {
btnNext.enabled = true; wizardController.useMoneroClicked();
}); });
}
btnNext.enabled = true;
} }
} }
} }