1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 22:07:25 +08:00

Fix attempting to use "home" key binding while exiting game causing errors

This commit is contained in:
Dean Herbert 2022-09-09 14:52:46 +09:00
parent c6c59f050c
commit 856dbbba69

View File

@ -839,7 +839,9 @@ namespace osu.Game
OnHome = delegate OnHome = delegate
{ {
CloseAllOverlays(false); CloseAllOverlays(false);
menuScreen?.MakeCurrent();
if (menuScreen?.GetChildScreen() != null)
menuScreen.MakeCurrent();
}, },
}, topMostOverlayContent.Add); }, topMostOverlayContent.Add);