From 37e8e71adf00189b0ff785c9572d03565bb570e1 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Fri, 12 Mar 2021 20:16:02 +0100 Subject: [PATCH] Fixed an issue where custom collections could temporarily disappear when switching from ungrouped to grouped layout. --- es-app/src/guis/GuiCollectionSystemsOptions.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/es-app/src/guis/GuiCollectionSystemsOptions.cpp b/es-app/src/guis/GuiCollectionSystemsOptions.cpp index ce45522e4..6633c2ca8 100644 --- a/es-app/src/guis/GuiCollectionSystemsOptions.cpp +++ b/es-app/src/guis/GuiCollectionSystemsOptions.cpp @@ -316,6 +316,8 @@ GuiCollectionSystemsOptions::GuiCollectionSystemsOptions( Settings::getInstance()->getBool("UseCustomCollectionsSystem")) { Settings::getInstance()->setBool("UseCustomCollectionsSystem", use_custom_collections_system->getState()); + if (CollectionSystemsManager::get()->isEditing()) + CollectionSystemsManager::get()->exitEditMode(); setNeedsSaving(); setNeedsCollectionsUpdate(); setNeedsReloading();