From c5ecfb4e36ddb71848472dc5fd5a1d26a7f94d9f Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sun, 20 Sep 2020 20:26:02 +0200 Subject: [PATCH] Fixed an issue where deleting a game would not refresh the gamelist. --- es-app/src/views/gamelist/BasicGameListView.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/es-app/src/views/gamelist/BasicGameListView.cpp b/es-app/src/views/gamelist/BasicGameListView.cpp index ec2fa6e32..9e7fede87 100644 --- a/es-app/src/views/gamelist/BasicGameListView.cpp +++ b/es-app/src/views/gamelist/BasicGameListView.cpp @@ -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); }