Fixed an issue where hiding a game did not update the filter indices.

This commit is contained in:
Leon Styhre 2021-02-04 23:58:27 +01:00
parent 2e5b1b5187
commit d22e0fb5b5

View file

@ -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)