Fixed an issue where custom collections could temporarily disappear when switching from ungrouped to grouped layout.

This commit is contained in:
Leon Styhre 2021-03-12 20:16:02 +01:00
parent 1e845a189a
commit 37e8e71adf

View file

@ -316,6 +316,8 @@ GuiCollectionSystemsOptions::GuiCollectionSystemsOptions(
Settings::getInstance()->getBool("UseCustomCollectionsSystem")) { Settings::getInstance()->getBool("UseCustomCollectionsSystem")) {
Settings::getInstance()->setBool("UseCustomCollectionsSystem", Settings::getInstance()->setBool("UseCustomCollectionsSystem",
use_custom_collections_system->getState()); use_custom_collections_system->getState());
if (CollectionSystemsManager::get()->isEditing())
CollectionSystemsManager::get()->exitEditMode();
setNeedsSaving(); setNeedsSaving();
setNeedsCollectionsUpdate(); setNeedsCollectionsUpdate();
setNeedsReloading(); setNeedsReloading();