Fix default language load on start

This commit is contained in:
Dmitry Kychanov
2026-04-20 06:48:45 +04:00
committed by Adam Honse
parent 9199d062d1
commit aff0610df9

View File

@@ -94,6 +94,7 @@ OpenRGBSettingsPage::OpenRGBSettingsPage(QWidget *parent) :
\*---------------------------------------------------------*/
json ui_settings = ResourceManager::get()->GetSettingsManager()->GetSettings("UserInterface");
ui->ComboBoxLanguage->blockSignals(true);
if(ui_settings.contains("language"))
{
/*-----------------------------------------------------*\
@@ -116,6 +117,12 @@ OpenRGBSettingsPage::OpenRGBSettingsPage(QWidget *parent) :
ui->ComboBoxLanguage->setCurrentIndex(0);
}
/*---------------------------------------------------------*\
| Explicitly load the current selected language |
\*---------------------------------------------------------*/
on_ComboBoxLanguage_currentTextChanged(ui->ComboBoxLanguage->currentText());
ui->ComboBoxLanguage->blockSignals(false);
if(ui_settings.contains("greyscale_tray_icon"))
{
ui->CheckboxTrayIconGreyscale->setChecked(ui_settings["greyscale_tray_icon"]);