Skip to content

Commit

Permalink
wizard: menu: auto-focus next button
Browse files Browse the repository at this point in the history
  • Loading branch information
tobtoht committed Oct 9, 2024
1 parent 52546c5 commit 1ac76dd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/wizard/PageMenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
#include "PageMenu.h"
#include "ui_PageMenu.h"

#include <QTimer>

#include "config-feather.h"
#include "WalletWizard.h"

Expand All @@ -28,6 +30,10 @@ void PageMenu::initializePage() {
ui->radioCreate->setChecked(true);
}

QTimer::singleShot(0, [this]{
wizard()->button(QWizard::NextButton)->setFocus();
});

// Don't show setup wizard again
conf()->set(Config::firstRun, false);
}
Expand Down

0 comments on commit 1ac76dd

Please sign in to comment.