refactor: SettingsDialog, prevent updateControls from being called twice at startup
This commit is contained in:
parent
9268fef89d
commit
0bb8ff646a
1 changed files with 1 additions and 2 deletions
|
|
@ -43,7 +43,6 @@ SettingsDialog::SettingsDialog(QWidget *parent, const IServerConfig &serverConfi
|
||||||
ui->tabWidget->setCurrentIndex(0);
|
ui->tabWidget->setCurrentIndex(0);
|
||||||
|
|
||||||
loadFromConfig();
|
loadFromConfig();
|
||||||
updateControls();
|
|
||||||
|
|
||||||
adjustSize();
|
adjustSize();
|
||||||
QApplication::processEvents();
|
QApplication::processEvents();
|
||||||
|
|
@ -178,7 +177,7 @@ void SettingsDialog::loadFromConfig()
|
||||||
ui->rbIconColorful->setChecked(true);
|
ui->rbIconColorful->setChecked(true);
|
||||||
|
|
||||||
qDebug() << "load from config done";
|
qDebug() << "load from config done";
|
||||||
updateTlsControls();
|
updateControls();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SettingsDialog::updateTlsControls()
|
void SettingsDialog::updateTlsControls()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue