Avoid doing unnecessary UI work during shutdown, add a sanity check

This commit is contained in:
Henrik Rydgård committed 2025-05-13 13:56:01 +02:00
1 parent c817a0755c
commit 37712734e2
2 files changed
+30 -12

No files matched your search

+1 -1
View File
@@ -603,7 +603,7 @@ void GamePauseScreen::dialogFinished(const Screen *dialog, DialogResult dr) {
} else {
if (tag == "Game") {
g_BackgroundAudio.SetGame(Path());
} else if (tag != "ContextMenuPopup") {
} else if (tag != "Prompt" && tag != "ContextMenuPopup") {
// There may have been changes to our savestates, so let's recreate.
RecreateViews();
}