Close mod select before exiting song selection

This commit is contained in:
smoogipoo 2019-06-25 17:27:13 +09:00
parent d9927204f8
commit 1a26608ba9

View File

@ -274,17 +274,6 @@ namespace osu.Game.Screens.Select
return dependencies;
}
protected virtual void ExitFromBack()
{
if (ModSelect.State.Value == Visibility.Visible)
{
ModSelect.Hide();
return;
}
this.Exit();
}
public void Edit(BeatmapInfo beatmap = null)
{
Beatmap.Value = beatmaps.GetWorkingBeatmap(beatmap ?? beatmapNoDebounce);
@ -515,6 +504,12 @@ 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;