Fixed an issue where the collections were not properly initialized during theme set changes.

This commit is contained in:
Leon Styhre 2021-04-05 10:01:32 +02:00
parent 680fde743f
commit 510f428b52

View file

@ -187,8 +187,8 @@ void GuiMenu::openUISettings()
if (theme_set->getSelected() != Settings::getInstance()->getString("ThemeSet")) { if (theme_set->getSelected() != Settings::getInstance()->getString("ThemeSet")) {
Scripting::fireEvent("theme-changed", theme_set->getSelected(), Scripting::fireEvent("theme-changed", theme_set->getSelected(),
Settings::getInstance()->getString("ThemeSet")); Settings::getInstance()->getString("ThemeSet"));
CollectionSystemsManager::get()->updateSystemsList();
Settings::getInstance()->setString("ThemeSet", theme_set->getSelected()); Settings::getInstance()->setString("ThemeSet", theme_set->getSelected());
CollectionSystemsManager::get()->updateSystemsList();
s->setNeedsSaving(); s->setNeedsSaving();
s->setNeedsReloading(); s->setNeedsReloading();
s->setInvalidateCachedBackground(); s->setInvalidateCachedBackground();