1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-26 13:42:23 +08:00

Remove unnecessary bindable cast

This commit is contained in:
Dean Herbert
2022-05-25 19:25:23 +09:00
Unverified
parent 49a2173646
commit f1d4902be5
@@ -47,7 +47,7 @@ namespace osu.Game.Screens.Edit.Timing
private double selectedGroupStartTime;
private double selectedGroupEndTime;
private readonly BindableList<ControlPointGroup> controlPointGroups = new BindableList<ControlPointGroup>();
private readonly IBindableList<ControlPointGroup> controlPointGroups = new BindableList<ControlPointGroup>();
public WaveformComparisonDisplay()
{
@@ -83,7 +83,7 @@ namespace osu.Game.Screens.Edit.Timing
selectedGroup.BindValueChanged(_ => updateTimingGroup(), true);
((IBindableList<ControlPointGroup>)controlPointGroups).BindTo(editorBeatmap.ControlPointInfo.Groups);
controlPointGroups.BindTo(editorBeatmap.ControlPointInfo.Groups);
controlPointGroups.BindCollectionChanged((_, __) => updateTimingGroup());
beatLength.BindValueChanged(_ => showFrom(lastDisplayedBeatIndex), true);