1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 23:47:24 +08:00

Fix ModSelectOverlay accepting escape when it shouldn't

Because PlaySongSelect is suspending when selecting a song, we don't actually hide ModSelectOverlay.
This commit is contained in:
skettios 2017-05-05 17:01:44 -07:00
parent b98ae5d7c3
commit d129bd0c1f

View File

@ -69,6 +69,14 @@ namespace osu.Game.Screens.Select
base.OnResuming(last);
}
protected override void OnSuspending(Screen next)
{
if (modSelect.State == Visibility.Visible)
modSelect.Hide();
base.OnSuspending(next);
}
protected override bool OnExiting(Screen next)
{
if (modSelect.State == Visibility.Visible)