mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 14:15:38 +00:00
Further improvement to adding or removing collections.
This commit is contained in:
parent
5565170d93
commit
830c53e3cc
|
@ -257,7 +257,6 @@ GuiCollectionSystemsOptions::GuiCollectionSystemsOptions(
|
|||
collectionsConfigEntry);
|
||||
setNeedsSaving();
|
||||
setNeedsGoToStart();
|
||||
setNeedsGoToSystem(SystemData::sSystemVector.front());
|
||||
}
|
||||
CollectionSystemsManager::get()->deleteCustomCollection(name);
|
||||
return true;
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue