]> Nutra Git (v2) - gamesguru/feather.git/commitdiff
wizard: menu: auto-focus next button
authortobtoht <tob@featherwallet.org>
Wed, 9 Oct 2024 17:31:58 +0000 (19:31 +0200)
committertobtoht <tob@featherwallet.org>
Wed, 9 Oct 2024 17:47:21 +0000 (19:47 +0200)
src/wizard/PageMenu.cpp

index e318c0627389aa39ec70f195fa9f64b8c8685ca0..e09d9179f073204c78e4c4791104f450756b4b31 100644 (file)
@@ -4,6 +4,8 @@
 #include "PageMenu.h"
 #include "ui_PageMenu.h"
 
+#include <QTimer>
+
 #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);
 }