From d22e0fb5b5a4ebd432ad83389cc535b22ab148cc Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Thu, 4 Feb 2021 23:58:27 +0100 Subject: [PATCH] Fixed an issue where hiding a game did not update the filter indices. --- es-app/src/guis/GuiMetaDataEd.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/es-app/src/guis/GuiMetaDataEd.cpp b/es-app/src/guis/GuiMetaDataEd.cpp index 6c5c32bc6..86f224ff6 100644 --- a/es-app/src/guis/GuiMetaDataEd.cpp +++ b/es-app/src/guis/GuiMetaDataEd.cpp @@ -446,6 +446,12 @@ void GuiMetaDataEd::save() CollectionSystemsManager::get()->refreshCollectionSystems(mScraperParams.game); } + // If hiding a game, remove it from the indices of all systems. + if (hideGameWhileHidden) { + for (SystemData* sys : SystemData::sSystemVector) + sys->getIndex()->removeFromIndex(mScraperParams.game); + } + // If game counting was re-enabled for the game, then reactivate it in any custom collections // where it may exist. if (setGameAsCounted)