DolphinQt/Settings: Split setting of the user style into two functions.

This makes it so that if you just want to reload the current style (eg. on program start, or in response to a system event), you don't need to know the name of the currently selected user style. It's also more consistent with the way the 'userstyle/enabled' flag works.
This commit is contained in:
Admiral H. Curtiss 2023-11-04 17:56:43 +01:00
commit 6d585b6eb6
No known key found for this signature in database
GPG key ID: F051B4C4044F33FB
6 changed files with 20 additions and 14 deletions

View file

@ -247,7 +247,7 @@ int main(int argc, char* argv[])
Settings::Instance().InitDefaultPalette();
Settings::Instance().UpdateSystemDark();
Settings::Instance().SetCurrentUserStyle(Settings::Instance().GetCurrentUserStyle());
Settings::Instance().ApplyStyle();
MainWindow win{std::move(boot), static_cast<const char*>(options.get("movie"))};
win.Show();