diff --git a/es-app/src/guis/GuiCollectionSystemsOptions.cpp b/es-app/src/guis/GuiCollectionSystemsOptions.cpp index ebd4edda5..b120ff6cc 100644 --- a/es-app/src/guis/GuiCollectionSystemsOptions.cpp +++ b/es-app/src/guis/GuiCollectionSystemsOptions.cpp @@ -257,7 +257,6 @@ GuiCollectionSystemsOptions::GuiCollectionSystemsOptions( collectionsConfigEntry); setNeedsSaving(); setNeedsGoToStart(); - setNeedsGoToSystem(SystemData::sSystemVector.front()); } CollectionSystemsManager::get()->deleteCustomCollection(name); return true; diff --git a/es-app/src/guis/GuiSettings.cpp b/es-app/src/guis/GuiSettings.cpp index caba5800b..1bb6234a2 100644 --- a/es-app/src/guis/GuiSettings.cpp +++ b/es-app/src/guis/GuiSettings.cpp @@ -84,12 +84,17 @@ void GuiSettings::save() ViewController::get()->goToSystem(mGoToSystem, false); if (mNeedsGoToGroupedCollections) { + bool groupedSystemExists = false; for (SystemData* system : SystemData::sSystemVector) { if (system->getThemeFolder() == "custom-collections") { ViewController::get()->goToSystem(system, false); + groupedSystemExists = true; continue; } } + if (!groupedSystemExists) + // No grouped custom collection system exists, so go to the first system instead. + ViewController::get()->goToSystem(SystemData::sSystemVector.front(), false); } if (mNeedsCollectionsUpdate) {