mirror of
https://github.com/ppy/osu.git
synced 2025-01-30 06:52:53 +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);
|
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)
|
protected override bool OnExiting(Screen next)
|
||||||
{
|
{
|
||||||
if (modSelect.State == Visibility.Visible)
|
if (modSelect.State == Visibility.Visible)
|
||||||
|
Loading…
Reference in New Issue
Block a user