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,12 +82,14 @@ Rectangle {
btnNext.enabled = false;
wizardController.wizardStateView.wizardRestoreWallet2View.pwField = "";
wizardController.wizardStateView.wizardRestoreWallet2View.pwConfirmField = "";
wizardController.recoveryWallet();
wizardController.writeWallet(function() {
var recoveryResult = wizardController.recoveryWallet();
if (recoveryResult) {
wizardController.writeWallet(function () {
wizardController.useMoneroClicked();
btnNext.enabled = true;
});
}
btnNext.enabled = true;
}
}
}
}