Fixed an issue when switching theme sets while editing a custom collection.

This commit is contained in:
Leon Styhre 2021-04-05 13:27:42 +02:00
parent 0243b4bcf8
commit afa175b437

View file

@ -190,6 +190,12 @@ void GuiMenu::openUISettings()
Settings::getInstance()->setString("ThemeSet", theme_set->getSelected());
CollectionSystemsManager::get()->updateSystemsList();
mWindow->setChangedThemeSet();
// This is required so that the custom collection system does not disappear
// if the user is editing a custom collection when switching theme sets.
if (CollectionSystemsManager::get()->isEditing()) {
CollectionSystemsManager::get()->exitEditMode();
s->setNeedsCollectionsUpdate();
}
s->setNeedsSaving();
s->setNeedsReloading();
s->setNeedsGoToStart();