- Fix locking the game container while updating the icon data

This commit is contained in:
Maschell 2020-02-21 21:37:12 +01:00
parent 7ec159152c
commit 6c0c6387b6

View File

@ -375,11 +375,14 @@ void GuiIconGrid::OnGameTitleUpdated(gameInfo * info) {
break;
}
}
containerMutex.unlock();
// keep the lock to delay the draw() until the image data is ready.
if(container != NULL) {
container->updateImageData();
}
containerMutex.unlock();
bUpdatePositions = true;
}