mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-31 04:25:40 +00:00
Fixed an issue where custom collections were sometimes not properly updated after game metadata changes.
This commit is contained in:
parent
5e7480bfab
commit
09a67eee19
|
@ -364,12 +364,20 @@ void CollectionSystemsManager::updateCollectionSystem(FileData* file, Collection
|
|||
}
|
||||
else if (curSys->isCollection() && !file->getCountAsGame()) {
|
||||
// If the countasgame flag has been set to false, then remove the game.
|
||||
if (curSys->isGroupedCustomCollection())
|
||||
if (curSys->isGroupedCustomCollection()) {
|
||||
ViewController::get()->getGameListView(curSys->getRootFolder()->getParent()->
|
||||
getSystem()).get()->remove(collectionEntry, false);
|
||||
else
|
||||
FileData* parentRootFolder =
|
||||
rootFolder->getParent()->getSystem()->getRootFolder();
|
||||
parentRootFolder->sort(parentRootFolder->getSortTypeFromString(
|
||||
parentRootFolder->getSortTypeString()), mFavoritesSorting);
|
||||
}
|
||||
else {
|
||||
ViewController::get()->
|
||||
getGameListView(curSys).get()->remove(collectionEntry, false);
|
||||
}
|
||||
rootFolder->sort(rootFolder->getSortTypeFromString(
|
||||
rootFolder->getSortTypeString()), mFavoritesSorting);
|
||||
}
|
||||
|
||||
else {
|
||||
|
|
Loading…
Reference in a new issue