mirror of
https://github.com/ppy/osu.git
synced 2025-02-16 07:22:55 +08:00
Always populate action to make button behave better in testing scenarios
This commit is contained in:
parent
5034cb1025
commit
741c27c1f2
@ -28,8 +28,7 @@ namespace osu.Game.Beatmaps.Drawables.Cards.Buttons
|
|||||||
[BackgroundDependencyLoader(true)]
|
[BackgroundDependencyLoader(true)]
|
||||||
private void load(OsuGame? game, BeatmapDownloadTracker downloadTracker)
|
private void load(OsuGame? game, BeatmapDownloadTracker downloadTracker)
|
||||||
{
|
{
|
||||||
if (game != null)
|
Action = () => game?.PresentBeatmap(beatmapSet);
|
||||||
Action = () => game.PresentBeatmap(beatmapSet);
|
|
||||||
|
|
||||||
((IBindable<DownloadState>)downloadState).BindTo(downloadTracker.State);
|
((IBindable<DownloadState>)downloadState).BindTo(downloadTracker.State);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user