mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 04:42:18 +02:00
UI: Add backwards compatible theme fallback
Closes jp9000/obs-studio#936
This commit is contained in:
parent
7acd3be40d
commit
d1cb3a42f5
@ -738,13 +738,13 @@ bool OBSApp::InitTheme()
|
||||
{
|
||||
const char *themeName = config_get_string(globalConfig, "General",
|
||||
"Theme");
|
||||
|
||||
if (!themeName)
|
||||
themeName = "Default";
|
||||
|
||||
stringstream t;
|
||||
t << themeName;
|
||||
return SetTheme(t.str());
|
||||
if (strcmp(themeName, "Default") != 0 && SetTheme(themeName))
|
||||
return true;
|
||||
|
||||
return SetTheme("Default");
|
||||
}
|
||||
|
||||
OBSApp::OBSApp(int &argc, char **argv, profiler_name_store_t *store)
|
||||
|
Loading…
Reference in New Issue
Block a user