diff --git a/qt/OpenRGBDialog2.cpp b/qt/OpenRGBDialog2.cpp index e7acc3f6..cbb65019 100644 --- a/qt/OpenRGBDialog2.cpp +++ b/qt/OpenRGBDialog2.cpp @@ -415,16 +415,16 @@ OpenRGBDialog2::OpenRGBDialog2(QWidget *parent) : QMainWindow(parent), ui(new Op \*-----------------------------------------------------*/ AddSoftwareInfoPage(); - /*-----------------------------------------------------*\ - | Add the Supported Devices page | - \*-----------------------------------------------------*/ - AddSupportedDevicesPage(); - /*-----------------------------------------------------*\ | Add the settings page | \*-----------------------------------------------------*/ AddSettingsPage(); + /*-----------------------------------------------------*\ + | Add the Supported Devices page | + \*-----------------------------------------------------*/ + AddSupportedDevicesPage(); + /*-----------------------------------------------------*\ | Initialize the plugin manager | \*-----------------------------------------------------*/ @@ -633,7 +633,7 @@ void OpenRGBDialog2::AddSettingsPage() /*-----------------------------------------------------*\ | Create the tab label | \*-----------------------------------------------------*/ - TabLabel* SettingsTabLabel = new TabLabel(SettingsLabelString, "Settings"); + TabLabel* SettingsTabLabel = new TabLabel(SettingsLabelString, "General Settings"); ui->SettingsTabBar->tabBar()->setTabButton(ui->SettingsTabBar->tabBar()->count() - 1, QTabBar::LeftSide, SettingsTabLabel); } diff --git a/qt/OpenRGBSettingsPage.cpp b/qt/OpenRGBSettingsPage.cpp index 536a997c..9de9b17c 100644 --- a/qt/OpenRGBSettingsPage.cpp +++ b/qt/OpenRGBSettingsPage.cpp @@ -2,6 +2,8 @@ #include "OpenRGBSettingsPage.h" #include "ui_OpenRGBSettingsPage.h" #include "ResourceManager.h" +#include +#include using namespace Ui; @@ -500,3 +502,11 @@ void OpenRGBSettingsPage::SaveSettings() { ResourceManager::get()->GetSettingsManager()->SaveSettings(); } + +void Ui::OpenRGBSettingsPage::on_OpenSettingsFolderButton_clicked() +{ + std::string config_dir = ResourceManager::get()->GetConfigurationDirectory(); + QUrl url = QUrl::fromLocalFile(QString::fromStdString(config_dir)); + QDesktopServices::openUrl(url); +} + diff --git a/qt/OpenRGBSettingsPage.h b/qt/OpenRGBSettingsPage.h index fd8ae4fd..d64d859d 100644 --- a/qt/OpenRGBSettingsPage.h +++ b/qt/OpenRGBSettingsPage.h @@ -48,6 +48,7 @@ private slots: void on_CheckboxAutoStartSetServerPort_clicked(); void on_CheckboxAutoStartCustom_clicked(); void on_CheckboxRunZoneChecks_clicked(); + void on_OpenSettingsFolderButton_clicked(); }; #endif // OPENRGBSETTINGSPAGE_H diff --git a/qt/OpenRGBSettingsPage.ui b/qt/OpenRGBSettingsPage.ui index 2d6d05fc..6969990a 100644 --- a/qt/OpenRGBSettingsPage.ui +++ b/qt/OpenRGBSettingsPage.ui @@ -24,8 +24,8 @@ 0 0 - 449 - 574 + 416 + 459 @@ -172,6 +172,13 @@ + + + + Open Settings Folder + + + diff --git a/qt/OpenRGBSupportedDevicesPage.cpp b/qt/OpenRGBSupportedDevicesPage.cpp index 77705ec4..16ddd7fd 100644 --- a/qt/OpenRGBSupportedDevicesPage.cpp +++ b/qt/OpenRGBSupportedDevicesPage.cpp @@ -1,8 +1,6 @@ #include "OpenRGBSupportedDevicesPage.h" #include "ui_OpenRGBSupportedDevicesPage.h" #include "ResourceManager.h" -#include -#include using namespace Ui; @@ -46,13 +44,6 @@ void OpenRGBSupportedDevicesPage::on_SaveButton_clicked() detectorTableModel->applySettings(); } -void OpenRGBSupportedDevicesPage::on_OpenSettingsFolderButton_clicked() -{ - std::string config_dir = ResourceManager::get()->GetConfigurationDirectory(); - QUrl url = QUrl::fromLocalFile(QString::fromStdString(config_dir)); - QDesktopServices::openUrl(url); -} - void OpenRGBSupportedDevicesPage::on_Filter_textChanged(const QString &arg1) { #ifdef _QT6 diff --git a/qt/OpenRGBSupportedDevicesPage.h b/qt/OpenRGBSupportedDevicesPage.h index 55e66482..b0bea4c1 100644 --- a/qt/OpenRGBSupportedDevicesPage.h +++ b/qt/OpenRGBSupportedDevicesPage.h @@ -23,8 +23,6 @@ public: private slots: void on_SaveButton_clicked(); - void on_OpenSettingsFolderButton_clicked(); - void on_Filter_textChanged(const QString &arg1); void on_ToggleAllCheckbox_toggled(const bool checked); diff --git a/qt/OpenRGBSupportedDevicesPage.ui b/qt/OpenRGBSupportedDevicesPage.ui index b9c44086..52e4fa27 100644 --- a/qt/OpenRGBSupportedDevicesPage.ui +++ b/qt/OpenRGBSupportedDevicesPage.ui @@ -40,13 +40,6 @@ - - - - Open settings folder - - -