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:
parent
39649747aa
commit
96100a2200
@ -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]
|
||||
|
@ -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 =>
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user