wizard: menu: auto-focus next button

This commit is contained in:
tobtoht 2024-10-09 19:31:58 +02:00
parent 52546c5660
commit 1ac76ddcee
No known key found for this signature in database
GPG key ID: E45B10DD027D2472

View file

@ -4,6 +4,8 @@
#include "PageMenu.h" #include "PageMenu.h"
#include "ui_PageMenu.h" #include "ui_PageMenu.h"
#include <QTimer>
#include "config-feather.h" #include "config-feather.h"
#include "WalletWizard.h" #include "WalletWizard.h"
@ -28,6 +30,10 @@ void PageMenu::initializePage() {
ui->radioCreate->setChecked(true); ui->radioCreate->setChecked(true);
} }
QTimer::singleShot(0, [this]{
wizard()->button(QWizard::NextButton)->setFocus();
});
// Don't show setup wizard again // Don't show setup wizard again
conf()->set(Config::firstRun, false); conf()->set(Config::firstRun, false);
} }