File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -23,12 +23,6 @@ CfgSwitcher::CfgSwitcher(QWidget *parent) :
23
23
setGameBtns (false );
24
24
setFixedSize (650 , 450 );
25
25
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);
32
26
33
27
// Configure game table view model
34
28
for (Game &g : games)
@@ -76,6 +70,14 @@ CfgSwitcher::CfgSwitcher(QWidget *parent) :
76
70
setPowerStatusLabel ();
77
71
switchConfigs ();
78
72
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);
79
81
}
80
82
81
83
CfgSwitcher::~CfgSwitcher ()
You can’t perform that action at this time.
0 commit comments