mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-05-10 07:32:56 -04:00
Fix default language load on start
This commit is contained in:
committed by
Adam Honse
parent
9199d062d1
commit
aff0610df9
@@ -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"]);
|
||||
|
||||
Reference in New Issue
Block a user