mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 07:22:55 +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;
|
set => cover.BeatmapSet = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Action OnWantsSelectBeatmap;
|
public Action OnRequestSelectBeatmap;
|
||||||
|
|
||||||
public Header()
|
public Header()
|
||||||
{
|
{
|
||||||
@ -89,7 +89,7 @@ namespace osu.Game.Screens.Multi.Screens.Match
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
beatmapButton.Action = () => OnWantsSelectBeatmap?.Invoke();
|
beatmapButton.Action = () => OnRequestSelectBeatmap?.Invoke();
|
||||||
}
|
}
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[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.BindTo(room.Beatmap);
|
||||||
beatmapBind.BindValueChanged(b =>
|
beatmapBind.BindValueChanged(b =>
|
||||||
|
@ -7,12 +7,7 @@ namespace osu.Game.Screens.Select
|
|||||||
{
|
{
|
||||||
protected override bool OnStart()
|
protected override bool OnStart()
|
||||||
{
|
{
|
||||||
Schedule(() =>
|
if (IsCurrentScreen) Exit();
|
||||||
{
|
|
||||||
// needs to be scheduled else we enter an infinite feedback loop.
|
|
||||||
if (IsCurrentScreen) Exit();
|
|
||||||
});
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user