refactor(server config dialog): starting tab should depend on if an external config file is being used

This commit is contained in:
sithlord48 2026-08-05 10:47:18 -04:00 committed by Chris Rizzitello
parent fe29194b64
commit 4e28bce379

View file

@ -42,8 +42,9 @@ ServerConfigDialog::ServerConfigDialog(QWidget *parent, ServerConfig &config)
ui->lblNewScreen->setPixmap(QIcon::fromTheme("video-display").pixmap(QSize(64, 64)));
ui->btnBrowseConfigFile->setIcon(QIcon::fromTheme(QIcon::ThemeIcon::DocumentOpen));
// force the first tab, since qt creator sets the active tab as the last one
// the developer was looking at, and it's easy to accidentally save that.
if (ui->groupExternalConfig->isChecked())
ui->tabWidget->setCurrentIndex(3);
else
ui->tabWidget->setCurrentIndex(0);
if (!deskflow::platform::isWindows())