mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-25 23:38:47 -04:00
UI: Fix theme showing incorrect theme when on Dark
This commit is contained in:
1 parent
0ee9d191bf
commit
6b2f3d0604
1 file changed
+3
-3
@@ -1029,12 +1029,12 @@ void OBSBasicSettings::LoadThemeList()
|
||||
ui->theme->addItem(name);
|
||||
}
|
||||
|
||||
const char *themeName = App()->GetTheme();
|
||||
std::string themeName = App()->GetTheme();
|
||||
|
||||
if (strcmp(themeName, DEFAULT_THEME) == 0)
|
||||
if (themeName == DEFAULT_THEME)
|
||||
themeName = QT_TO_UTF8(defaultTheme);
|
||||
|
||||
int idx = ui->theme->findText(themeName);
|
||||
int idx = ui->theme->findText(themeName.c_str());
|
||||
if (idx != -1)
|
||||
ui->theme->setCurrentIndex(idx);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user