From: tobtoht Date: Wed, 9 Oct 2024 17:31:58 +0000 (+0200) Subject: wizard: menu: auto-focus next button X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=1ac76ddceea8a823f4ca73c136cbffa90ad4f4f6;p=gamesguru%2Ffeather.git wizard: menu: auto-focus next button --- diff --git a/src/wizard/PageMenu.cpp b/src/wizard/PageMenu.cpp index e318c062..e09d9179 100644 --- a/src/wizard/PageMenu.cpp +++ b/src/wizard/PageMenu.cpp @@ -4,6 +4,8 @@ #include "PageMenu.h" #include "ui_PageMenu.h" +#include + #include "config-feather.h" #include "WalletWizard.h" @@ -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); }