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
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);