UI: Reintroduce faster theme switching
Based on (was reverted):
08cee21158
This simplifies the faster switching code, as setting an empty
stylesheet resets it to default.
master
parent
5412b000ab
commit
ccfe300f72
|
@ -1205,6 +1205,8 @@ bool OBSApp::SetTheme(std::string name, std::string path)
|
|||
path = GetTheme(name, path);
|
||||
if (path.empty())
|
||||
return false;
|
||||
|
||||
setStyleSheet("");
|
||||
unique_ptr<OBSThemeMeta> themeMeta;
|
||||
themeMeta.reset(ParseThemeMeta(path.c_str()));
|
||||
string parentPath;
|
||||
|
|
Loading…
Reference in New Issue