refactor: ensure tabwidget start at index 0

This commit is contained in:
sithlord48 2026-08-06 08:00:01 -04:00 committed by Chris Rizzitello
parent 8f5ef1efbf
commit b8e72c6313
2 changed files with 2 additions and 0 deletions

View file

@ -34,6 +34,7 @@ ServerConfigDialog::ServerConfigDialog(QWidget *parent, ServerConfig &config)
m_screenSetupModel(m_serverConfig.screens(), m_columns, m_rows) m_screenSetupModel(m_serverConfig.screens(), m_columns, m_rows)
{ {
ui->setupUi(this); ui->setupUi(this);
ui->tabWidget->setCurrentIndex(0);
loadFromConfig(); loadFromConfig();

View file

@ -31,6 +31,7 @@ SettingsDialog::SettingsDialog(QWidget *parent, const ServerConfig &serverConfig
{ {
ui->setupUi(this); ui->setupUi(this);
ui->tabWidget->setCurrentIndex(0);
// these are enabled by the control next to them // these are enabled by the control next to them
ui->lineCommandEnter->setEnabled(false); ui->lineCommandEnter->setEnabled(false);