mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-29 01:25:38 +00:00
Fixed an issue where deleting a game would not properly reload the gamelist.
This commit is contained in:
parent
2d6103efa6
commit
814b0cfd18
|
@ -378,10 +378,11 @@ void GuiGamelistOptions::openMetaDataEd()
|
||||||
LOG(LogInfo) << "Deleting the game file \"" << file->getFullPath() <<
|
LOG(LogInfo) << "Deleting the game file \"" << file->getFullPath() <<
|
||||||
"\", all its media files and its gamelist.xml entry.";
|
"\", all its media files and its gamelist.xml entry.";
|
||||||
CollectionSystemsManager::get()->deleteCollectionFiles(file);
|
CollectionSystemsManager::get()->deleteCollectionFiles(file);
|
||||||
ViewController::get()->getGameListView(
|
ViewController::get()->getGameListView(file->getSystem()).get()->removeMedia(file);
|
||||||
file->getSystem()).get()->removeMedia(file);
|
ViewController::get()->getGameListView(file->getSystem()).get()->remove(file, true);
|
||||||
ViewController::get()->getGameListView(
|
mSystem->getRootFolder()->sort(*mListSort->getSelected(), mFavoritesSorting);
|
||||||
file->getSystem()).get()->remove(file, true);
|
ViewController::get()->reloadGameListView(mSystem);
|
||||||
|
|
||||||
mWindow->invalidateCachedBackground();
|
mWindow->invalidateCachedBackground();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue