From a0d75b28baca1d6dd08eeeced9d4745d72b1609e Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Tue, 19 Aug 2025 23:15:35 -0400 Subject: [PATCH] refactor: SettingsDialog, group client options together into a groupClientOptions --- src/lib/gui/dialogs/SettingsDialog.cpp | 3 +-- src/lib/gui/dialogs/SettingsDialog.ui | 32 ++++++++++++-------------- 2 files changed, 16 insertions(+), 19 deletions(-) diff --git a/src/lib/gui/dialogs/SettingsDialog.cpp b/src/lib/gui/dialogs/SettingsDialog.cpp index 264cd5bfe..6550dca7f 100644 --- a/src/lib/gui/dialogs/SettingsDialog.cpp +++ b/src/lib/gui/dialogs/SettingsDialog.cpp @@ -264,8 +264,7 @@ void SettingsDialog::updateControls() ui->groupService->setVisible(false); } - ui->cbLanguageSync->setEnabled(writable && isClientMode()); - ui->cbScrollDirection->setEnabled(writable && isClientMode()); + ui->groupClientOptions->setEnabled(writable && isClientMode()); ui->widgetLogFilename->setEnabled(writable && logToFile); diff --git a/src/lib/gui/dialogs/SettingsDialog.ui b/src/lib/gui/dialogs/SettingsDialog.ui index 1ff603b05..027f827c7 100644 --- a/src/lib/gui/dialogs/SettingsDialog.ui +++ b/src/lib/gui/dialogs/SettingsDialog.ui @@ -37,7 +37,7 @@ 15 - + 0 @@ -45,27 +45,20 @@ - Basics + Client mode - - - - Prevent this computer from going to sleep - - - - Use server's keyboard language on this computer (client mode) + Use server's keyboard language on this computer - Invert scroll direction on this computer (client mode) + Invert scroll direction on this computer @@ -92,16 +85,23 @@ - + - Leave app running in notification area when the window is closed + Hide the window when the app starts - + - Hide the window when the app starts + Prevent this computer from going to sleep + + + + + + + Leave app running in notification area when the window is closed @@ -609,12 +609,10 @@ tabWidget - cbPreventSleep cbLanguageSync cbScrollDirection cbAutoUpdate cbCloseToTray - cbAutoHide rbIconColorful rbIconMono groupSecurity