mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-04-10 19:15:13 +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.
|
// Enter game in index.
|
||||||
mScraperParams.system->getIndex()->addToIndex(mScraperParams.game);
|
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)
|
if (mSavedCallback)
|
||||||
mSavedCallback();
|
mSavedCallback();
|
||||||
|
|
||||||
// Update respective Collection Entries.
|
// Update respective Collection Entries.
|
||||||
CollectionSystemManager::get()->refreshCollectionSystems(mScraperParams.game);
|
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();
|
mScraperParams.system->onMetaDataSavePoint();
|
||||||
|
|
||||||
// Make sure that the cached background is updated to reflect any possible visible
|
// Make sure that the cached background is updated to reflect any possible visible
|
||||||
// changes to the gamelist (e.g. the game name).
|
// changes to the gamelist (e.g. the game name).
|
||||||
mWindow->invalidateCachedBackground();
|
mWindow->invalidateCachedBackground();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue