refactor: SettingsDialog, prevent updateControls from being called twice at startup

This commit is contained in:
sithlord48 2025-08-19 22:51:50 -04:00 committed by Chris Rizzitello
parent 9268fef89d
commit 0bb8ff646a

View file

@ -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()