1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 03:03:02 +08:00

Remove schedule logic (seems unnecessary)

This commit is contained in:
Dean Herbert 2018-06-20 17:41:48 +09:00
parent 39649747aa
commit 96100a2200
3 changed files with 4 additions and 9 deletions

View File

@ -34,7 +34,7 @@ namespace osu.Game.Screens.Multi.Screens.Match
set => cover.BeatmapSet = value;
}
public Action OnWantsSelectBeatmap;
public Action OnRequestSelectBeatmap;
public Header()
{
@ -89,7 +89,7 @@ namespace osu.Game.Screens.Multi.Screens.Match
},
};
beatmapButton.Action = () => OnWantsSelectBeatmap?.Invoke();
beatmapButton.Action = () => OnRequestSelectBeatmap?.Invoke();
}
[BackgroundDependencyLoader]

View File

@ -50,7 +50,7 @@ namespace osu.Game.Screens.Multi.Screens.Match
},
};
header.OnWantsSelectBeatmap = () => Push(new MatchSongSelect());
header.OnRequestSelectBeatmap = () => Push(new MatchSongSelect());
beatmapBind.BindTo(room.Beatmap);
beatmapBind.BindValueChanged(b =>

View File

@ -7,12 +7,7 @@ namespace osu.Game.Screens.Select
{
protected override bool OnStart()
{
Schedule(() =>
{
// needs to be scheduled else we enter an infinite feedback loop.
if (IsCurrentScreen) Exit();
});
if (IsCurrentScreen) Exit();
return true;
}
}