From 96a5f1f056da9941b6bfa11ddd1339a5e8c711da Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sun, 5 Mar 2023 12:38:05 +0100 Subject: [PATCH] Fixed an issue where the grouped custom collections game count was not always updated. --- es-app/src/views/ViewController.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/es-app/src/views/ViewController.cpp b/es-app/src/views/ViewController.cpp index 3b5e4847e..85ae276cb 100644 --- a/es-app/src/views/ViewController.cpp +++ b/es-app/src/views/ViewController.cpp @@ -1221,6 +1221,12 @@ void ViewController::reloadGamelistView(GamelistView* view, bool reloadTheme) mCurrentView = newView; newView->populateCursorHistory(cursorHistoryTemp); + // This is required to get the game count updated if the favorite metadata value has + // been changed for any game that is part of a custom collection. + if (system->isCollection() && system->getName() == "collections") { + std::pair gameCount {0, 0}; + system->getRootFolder()->countGames(gameCount); + } updateHelpPrompts(); break; }