Fixed an issue where clearing a game would randomly keep some theme elements from being rendered.

This commit is contained in:
Leon Styhre 2021-03-12 23:15:55 +01:00
parent cd91eb6ec9
commit 652adc41d8

View file

@ -366,6 +366,10 @@ void GuiGamelistOptions::openMetaDataEd()
CollectionSystemsManager::get()->refreshCollectionSystems(file, true);
file->getSystem()->sortSystem();
// This small delay keeps the theme extras from sometimes not being rendered while
// the background cache is invalidated. Very strange, it must be some kind of race
// condition or similar.
SDL_Delay(10);
mWindow->invalidateCachedBackground();
// Remove the folder entry from the gamelist.xml file.