Fixed an issue where the gamelist was not sorted after folder metadata updates.

This commit is contained in:
Leon Styhre 2020-09-27 10:51:50 +02:00
parent 0946988fdb
commit cc6b4eb47d

View file

@ -365,9 +365,9 @@ void GuiMetaDataEd::save()
// Update respective Collection Entries.
CollectionSystemManager::get()->refreshCollectionSystems(mScraperParams.game);
// If hiding a folder and the hide games flag is enabled, we need to manually sort
// and reload the gamelist as CollectionSystemManager ignores folders.
if (hideGameWhileHidden && mScraperParams.game->getType() == FOLDER) {
// If it's a folder that has been updated, we need to manually sort and reload the
// gamelist as CollectionSystemManager ignores folders.
if (mScraperParams.game->getType() == FOLDER) {
FileData* systemRoot = mScraperParams.system->getRootFolder();
systemRoot->sort(systemRoot->getSortTypeFromString(systemRoot->getSortTypeString()),
Settings::getInstance()->getBool("FavoritesFirst"));