Fixed an issue where deleting a game would not refresh the gamelist.

This commit is contained in:
Leon Styhre 2020-09-20 20:26:02 +02:00
parent e56fdf3df6
commit c5ecfb4e36

View file

@ -189,6 +189,11 @@ void BasicGameListView::remove(FileData *game, bool deleteFile)
// Remove before repopulating (removes from parent), then update the view.
delete game;
if (deleteFile)
parent->sort(parent->getSortTypeFromString(parent->getSortTypeString()),
Settings::getInstance()->getBool("FavoritesFirst"));
onFileChanged(parent, FILE_REMOVED);
}