Skip to content

Commit e41e72f

Browse files
author
cspangler
committed
Fixed missing header on restore bug
1 parent 79d40dc commit e41e72f

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

cfg-switcher/cfgswitcher.cpp

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,6 @@ CfgSwitcher::CfgSwitcher(QWidget *parent) :
2323
setGameBtns(false);
2424
setFixedSize(650, 450);
2525
setWindowFlags(this->windowFlags() |= Qt::MSWindowsFixedSizeDialogHint);
26-
if(settings.getMin()) {
27-
showMinimized();
28-
ui->startMinCB->setCheckState(Qt::Checked);
29-
}
30-
if(settings.getRunStart())
31-
ui->runStartCB->setCheckState(Qt::Checked);
3226

3327
// Configure game table view model
3428
for(Game &g : games)
@@ -76,6 +70,14 @@ CfgSwitcher::CfgSwitcher(QWidget *parent) :
7670
setPowerStatusLabel();
7771
switchConfigs();
7872
QAbstractEventDispatcher::instance()->installNativeEventFilter(this);
73+
74+
// React to settings
75+
if(settings.getMin()) {
76+
showMinimized();
77+
ui->startMinCB->setCheckState(Qt::Checked);
78+
}
79+
if(settings.getRunStart())
80+
ui->runStartCB->setCheckState(Qt::Checked);
7981
}
8082

8183
CfgSwitcher::~CfgSwitcher()

0 commit comments

Comments
 (0)