mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-16 15:58:11 +00:00
Wizard: Prevent user from getting trapped
This commit is contained in:
parent
55f4858a40
commit
0b7efa19ef
2 changed files with 5 additions and 7 deletions
|
@ -92,8 +92,8 @@ Rectangle {
|
|||
var nextButtonVisible = pages[currentPage] !== optionsPage;
|
||||
nextButton.visible = nextButtonVisible;
|
||||
|
||||
if (next && typeof pages[currentPage].onPageOpened !== 'undefined') {
|
||||
pages[currentPage].onPageOpened(settings)
|
||||
if (typeof pages[currentPage].onPageOpened !== 'undefined') {
|
||||
pages[currentPage].onPageOpened(settings,next)
|
||||
}
|
||||
|
||||
|
||||
|
@ -113,8 +113,6 @@ Rectangle {
|
|||
createWalletPage.createWallet(settings)
|
||||
wizard.nextButton.visible = true
|
||||
createWalletPage.onPageOpened(settings);
|
||||
|
||||
|
||||
}
|
||||
|
||||
function openRecoveryWalletPage() {
|
||||
|
|
|
@ -44,12 +44,12 @@ Item {
|
|||
function onWizardRestarted() {
|
||||
// reset account name field
|
||||
uiItem.accountNameText = defaultAccountName
|
||||
// Empty seedText
|
||||
uiItem.wordsTextItem.memoText = "";
|
||||
}
|
||||
|
||||
function onPageOpened(settingsObject) {
|
||||
checkNextButton();
|
||||
// Empty seedText when restoring multiple times in one session
|
||||
uiItem.wordsTextItem.memoText = "";
|
||||
checkNextButton();
|
||||
}
|
||||
|
||||
function checkNextButton() {
|
||||
|
|
Loading…
Reference in a new issue