From 1ac76ddceea8a823f4ca73c136cbffa90ad4f4f6 Mon Sep 17 00:00:00 2001 From: tobtoht Date: Wed, 9 Oct 2024 19:31:58 +0200 Subject: [PATCH] wizard: menu: auto-focus next button --- src/wizard/PageMenu.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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); } -- 2.52.0