mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Fix issue where the background remained when removing a game from recent
Fixes #21438
This commit is contained in:
1 parent
4f8cdbe165
commit
fdfcda8859
1 file changed
+3
@@ -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());
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user