1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-06 22:45:53 +08:00

Fix mod select blocking home and alt f4 in song select

This commit is contained in:
Joehu
2020-07-14 00:00:10 -07:00
Unverified
parent 1a2f5cb477
commit 4caf4d31d4
+11 -6
View File
@@ -599,12 +599,6 @@ namespace osu.Game.Screens.Select
public override bool OnExiting(IScreen next)
{
if (ModSelect.State.Value == Visibility.Visible)
{
ModSelect.Hide();
return true;
}
if (base.OnExiting(next))
return true;
@@ -620,6 +614,17 @@ namespace osu.Game.Screens.Select
return false;
}
public override bool OnBackButton()
{
if (ModSelect.State.Value == Visibility.Visible)
{
ModSelect.Hide();
return true;
}
return false;
}
protected override void Dispose(bool isDisposing)
{
base.Dispose(isDisposing);