mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-26 08:05:38 +00:00
Fixed additional issue with folder updates and gamelist sorting.
This commit is contained in:
parent
cc6b4eb47d
commit
90f5d7fad4
|
@ -359,22 +359,19 @@ void GuiMetaDataEd::save()
|
|||
// Enter game in index.
|
||||
mScraperParams.system->getIndex()->addToIndex(mScraperParams.game);
|
||||
|
||||
// If it's a folder that has been updated, we need to manually sort the gamelist
|
||||
// as CollectionSystemManager ignores folders.
|
||||
if (mScraperParams.game->getType() == FOLDER)
|
||||
mScraperParams.system->sortSystem(false);
|
||||
|
||||
if (mSavedCallback)
|
||||
mSavedCallback();
|
||||
|
||||
// Update respective Collection Entries.
|
||||
CollectionSystemManager::get()->refreshCollectionSystems(mScraperParams.game);
|
||||
|
||||
// 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"));
|
||||
ViewController::get()->reloadGameListView(mScraperParams.system);
|
||||
}
|
||||
|
||||
mScraperParams.system->onMetaDataSavePoint();
|
||||
|
||||
// Make sure that the cached background is updated to reflect any possible visible
|
||||
// changes to the gamelist (e.g. the game name).
|
||||
mWindow->invalidateCachedBackground();
|
||||
|
|
Loading…
Reference in a new issue