Restructure card to use single tracker at the top level

This commit is contained in:
Bartłomiej Dach
2021-11-13 15:38:04 +01:00
parent be3f225d4b
commit b58fe2d80a
4 changed files with 38 additions and 36 deletions

View File

@ -178,8 +178,7 @@ namespace osu.Game.Tests.Visual.Beatmaps
private class TestDownloadButton : DownloadButton
{
public readonly Bindable<DownloadState> State = new Bindable<DownloadState>();
public readonly BindableNumber<double> Progress = new BindableNumber<double>();
public new Bindable<DownloadState> State => base.State;
public new BeatmapCardIconButton Download => base.Download;
public new BeatmapCardIconButton Play => base.Play;
@ -187,8 +186,6 @@ namespace osu.Game.Tests.Visual.Beatmaps
public TestDownloadButton(APIBeatmapSet beatmapSet)
: base(beatmapSet)
{
Tracker.State.BindTo(State);
Tracker.Progress.BindTo(Progress);
}
}
}