mirror of
https://github.com/ppy/osu.git
synced 2025-02-14 05:32:55 +08:00
Close mod select before exiting song selection
This commit is contained in:
parent
d9927204f8
commit
1a26608ba9
@ -274,17 +274,6 @@ namespace osu.Game.Screens.Select
|
|||||||
return dependencies;
|
return dependencies;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected virtual void ExitFromBack()
|
|
||||||
{
|
|
||||||
if (ModSelect.State.Value == Visibility.Visible)
|
|
||||||
{
|
|
||||||
ModSelect.Hide();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
this.Exit();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Edit(BeatmapInfo beatmap = null)
|
public void Edit(BeatmapInfo beatmap = null)
|
||||||
{
|
{
|
||||||
Beatmap.Value = beatmaps.GetWorkingBeatmap(beatmap ?? beatmapNoDebounce);
|
Beatmap.Value = beatmaps.GetWorkingBeatmap(beatmap ?? beatmapNoDebounce);
|
||||||
@ -515,6 +504,12 @@ namespace osu.Game.Screens.Select
|
|||||||
|
|
||||||
public override bool OnExiting(IScreen next)
|
public override bool OnExiting(IScreen next)
|
||||||
{
|
{
|
||||||
|
if (ModSelect.State.Value == Visibility.Visible)
|
||||||
|
{
|
||||||
|
ModSelect.Hide();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if (base.OnExiting(next))
|
if (base.OnExiting(next))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user