Fixed an issue where clearing a game would not update its collection entries.

This commit is contained in:
Leon Styhre 2020-12-31 19:58:51 +01:00
parent 1a4c2fc4ae
commit 4dded3306c

View file

@ -348,6 +348,10 @@ void GuiGamelistOptions::openMetaDataEd()
file->metadata.set(it->key, it->defaultValue);
}
// Update all collections where the game is present.
if (file->getType() == GAME)
CollectionSystemsManager::get()->refreshCollectionSystems(file);
file->getSystem()->sortSystem();
mWindow->invalidateCachedBackground();