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:
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)
|
||||
|
Loading…
Reference in New Issue
Block a user