From fdfcda8859d0fdce8e8eb211c2e0f72de8618874 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sun, 15 Mar 2026 11:56:10 +0100 Subject: [PATCH] Fix issue where the background remained when removing a game from recent Fixes #21438 --- UI/GameScreen.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/UI/GameScreen.cpp b/UI/GameScreen.cpp index 301f5cbccd..ae164ff823 100644 --- a/UI/GameScreen.cpp +++ b/UI/GameScreen.cpp @@ -554,6 +554,9 @@ void GameScreen::CreateContextMenu(UI::ViewGroup *parent) { Choice *removeButton = parent->Add(new Choice(ga->T("Remove From Recent"), ImageID("I_UNPIN"))); removeButton->OnClick.Add([this](UI::EventParams &e) { g_recentFiles.Remove(gamePath_.ToString()); + System_PostUIMessage(UIMessage::GAME_SELECTED, ""); + // TODO: We should be able to do TriggerFinish here, but unfortunately + // the screen manager still considers the popup dialog the current dialog. screenManager()->switchScreen(new MainScreen()); }); }