mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 23:55:38 +00:00
Fixed an issue where deleting a game would not refresh the gamelist.
This commit is contained in:
parent
e56fdf3df6
commit
c5ecfb4e36
|
@ -189,6 +189,11 @@ void BasicGameListView::remove(FileData *game, bool deleteFile)
|
||||||
|
|
||||||
// Remove before repopulating (removes from parent), then update the view.
|
// Remove before repopulating (removes from parent), then update the view.
|
||||||
delete game;
|
delete game;
|
||||||
|
|
||||||
|
if (deleteFile)
|
||||||
|
parent->sort(parent->getSortTypeFromString(parent->getSortTypeString()),
|
||||||
|
Settings::getInstance()->getBool("FavoritesFirst"));
|
||||||
|
|
||||||
onFileChanged(parent, FILE_REMOVED);
|
onFileChanged(parent, FILE_REMOVED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue