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)