From 8f5ef1efbf937462d2327a50db01921fb003cba5 Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Wed, 5 Aug 2026 22:09:25 -0400 Subject: [PATCH] refactor(server config dialog): move external server config option to Advanced tab --- src/lib/gui/dialogs/ServerConfigDialog.cpp | 5 -- src/lib/gui/dialogs/ServerConfigDialog.ui | 86 +--------------------- translations/deskflow_es.ts | 8 -- translations/deskflow_it.ts | 8 -- translations/deskflow_ja.ts | 8 -- translations/deskflow_ko.ts | 8 -- translations/deskflow_ru.ts | 8 -- translations/deskflow_zh_CN.ts | 8 -- 8 files changed, 3 insertions(+), 136 deletions(-) diff --git a/src/lib/gui/dialogs/ServerConfigDialog.cpp b/src/lib/gui/dialogs/ServerConfigDialog.cpp index 889243ef6..178cba93b 100644 --- a/src/lib/gui/dialogs/ServerConfigDialog.cpp +++ b/src/lib/gui/dialogs/ServerConfigDialog.cpp @@ -42,11 +42,6 @@ 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)); - if (ui->groupExternalConfig->isChecked()) - ui->tabWidget->setCurrentIndex(3); - else - ui->tabWidget->setCurrentIndex(0); - if (!deskflow::platform::isWindows()) ui->cbWin32KeepForeground->setVisible(false); initConnections(); diff --git a/src/lib/gui/dialogs/ServerConfigDialog.ui b/src/lib/gui/dialogs/ServerConfigDialog.ui index 0dac46dd5..699aa9137 100644 --- a/src/lib/gui/dialogs/ServerConfigDialog.ui +++ b/src/lib/gui/dialogs/ServerConfigDialog.ui @@ -19,7 +19,7 @@ Server Configuration - + @@ -763,86 +763,19 @@ - - - - - - 0 - 0 - - - - Config file - - - - 20 - - - - - 18 - true - - - - Core server config file - - - Qt::TextFormat::PlainText - - - Qt::AlignmentFlag::AlignCenter - - - - - - + + Use a server config file to create complex computer layouts that are not possible with the simple grid-based computer layout editor. Enabling this setting will disable the server config GUI. - - Qt::TextFormat::MarkdownText - - - Qt::AlignmentFlag::AlignCenter - - - true - - - - - - - Qt::Orientation::Vertical - - - QSizePolicy::Policy::Maximum - - - - 20 - 30 - - - - - - Use a server config file true - - false - @@ -944,19 +877,6 @@ Enabling this setting will disable the server config GUI. - - - - Qt::Orientation::Vertical - - - - 20 - 40 - - - - diff --git a/translations/deskflow_es.ts b/translations/deskflow_es.ts index 44fa647ff..d1690922a 100644 --- a/translations/deskflow_es.ts +++ b/translations/deskflow_es.ts @@ -1067,14 +1067,6 @@ Además, verifique que puede %1 el archivo de configuración del servidor: %2Switch on double &tap within Activar doble &toque dentro - - Config file - Archivo de configuración - - - Core server config file - Archivo de configuración del servidor principal - Use a server config file to create complex computer layouts that are not possible with the simple grid-based computer layout editor. diff --git a/translations/deskflow_it.ts b/translations/deskflow_it.ts index f224fe1b2..9416104ea 100644 --- a/translations/deskflow_it.ts +++ b/translations/deskflow_it.ts @@ -1067,14 +1067,6 @@ Inoltre, verifica di poter %1 il file di configurazione del server: %2Switch on double &tap within Passa al doppio &tap entro - - Config file - File di configurazione - - - Core server config file - File di configurazione principale del server - Use a server config file Utilizza un file di configurazione del server diff --git a/translations/deskflow_ja.ts b/translations/deskflow_ja.ts index 093d30e8e..488d0461f 100644 --- a/translations/deskflow_ja.ts +++ b/translations/deskflow_ja.ts @@ -1069,14 +1069,6 @@ Additionally, check you are able to %1 the server config file: %2 Switch on double &tap within 指定時間内に画面端ダブルタップで移動(&T) - - Config file - 設定ファイル - - - Core server config file - Coreサーバー設定ファイル - Use a server config file to create complex computer layouts that are not possible with the simple grid-based computer layout editor. diff --git a/translations/deskflow_ko.ts b/translations/deskflow_ko.ts index ce2c0116f..93e59b657 100644 --- a/translations/deskflow_ko.ts +++ b/translations/deskflow_ko.ts @@ -1067,14 +1067,6 @@ Additionally, check you are able to %1 the server config file: %2 Switch on double &tap within 지정 시간 내 더블 탭으로 전환(&T) - - Config file - 설정 파일 - - - Core server config file - 코어 서버 설정 파일 - Use a server config file to create complex computer layouts that are not possible with the simple grid-based computer layout editor. diff --git a/translations/deskflow_ru.ts b/translations/deskflow_ru.ts index 678dd0171..ce468fd04 100644 --- a/translations/deskflow_ru.ts +++ b/translations/deskflow_ru.ts @@ -1067,14 +1067,6 @@ Additionally, check you are able to %1 the server config file: %2 Switch on double &tap within Переключать по двойному &касанию за - - Config file - Файл конфигурации - - - Core server config file - Файл конфигурации ядра сервера - Use a server config file to create complex computer layouts that are not possible with the simple grid-based computer layout editor. diff --git a/translations/deskflow_zh_CN.ts b/translations/deskflow_zh_CN.ts index d4ad6eb36..2dac5f129 100644 --- a/translations/deskflow_zh_CN.ts +++ b/translations/deskflow_zh_CN.ts @@ -1069,14 +1069,6 @@ Additionally, check you are able to %1 the server config file: %2 Switch on double &tap within 在指定时间内双击切换(&T) - - Config file - 配置文件 - - - Core server config file - 核心服务器配置文件 - Use a server config file to create complex computer layouts that are not possible with the simple grid-based computer layout editor.