mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-17 07:11:29 +02:00
wizard: menu: auto-focus next button
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user