Skip to content

Commit aff0610

Browse files
k1-801CalcProgrammer1
authored andcommitted
Fix default language load on start
1 parent 9199d06 commit aff0610

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

qt/OpenRGBSettingsPage/OpenRGBSettingsPage.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ OpenRGBSettingsPage::OpenRGBSettingsPage(QWidget *parent) :
9494
\*---------------------------------------------------------*/
9595
json ui_settings = ResourceManager::get()->GetSettingsManager()->GetSettings("UserInterface");
9696

97+
ui->ComboBoxLanguage->blockSignals(true);
9798
if(ui_settings.contains("language"))
9899
{
99100
/*-----------------------------------------------------*\
@@ -116,6 +117,12 @@ OpenRGBSettingsPage::OpenRGBSettingsPage(QWidget *parent) :
116117
ui->ComboBoxLanguage->setCurrentIndex(0);
117118
}
118119

120+
/*---------------------------------------------------------*\
121+
| Explicitly load the current selected language |
122+
\*---------------------------------------------------------*/
123+
on_ComboBoxLanguage_currentTextChanged(ui->ComboBoxLanguage->currentText());
124+
ui->ComboBoxLanguage->blockSignals(false);
125+
119126
if(ui_settings.contains("greyscale_tray_icon"))
120127
{
121128
ui->CheckboxTrayIconGreyscale->setChecked(ui_settings["greyscale_tray_icon"]);

0 commit comments

Comments
 (0)