Fixed a rare issue where reloading the application could lead to a crash

This commit is contained in:
Leon Styhre 2025-03-14 22:09:40 +01:00
parent cd2d38a6d9
commit d814431496

View file

@ -1659,6 +1659,9 @@ void ViewController::rescanROMDirectory()
// It's possible that there are no longer any games.
mWindow->setBlockInput(false);
mWindow->invalidateCachedBackground();
mWindow->passHelpComponents(nullptr);
mWindow->passClockComponents(nullptr);
mWindow->passSystemStatusComponents(nullptr);
noGamesDialog();
}
else {