1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-23 02:39:52 +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
Unverified
parent b98ae5d7c3
commit d129bd0c1f
@@ -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)