Merge pull request #20205 from peppy/fix-go-home-during-exit

Fix attempting to use "home" key binding while exiting game causing errors
This commit is contained in:
Dan Balasescu 2022-09-09 16:27:27 +09:00 committed by GitHub
commit fd6d67d0f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -839,7 +839,9 @@ protected override void LoadComplete()
OnHome = delegate
{
CloseAllOverlays(false);
menuScreen?.MakeCurrent();
if (menuScreen?.GetChildScreen() != null)
menuScreen.MakeCurrent();
},
}, topMostOverlayContent.Add);