1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 07:22:54 +08:00

Remove unnecessary bindable cast

This commit is contained in:
Dean Herbert 2022-05-25 19:25:23 +09:00
parent 49a2173646
commit f1d4902be5

View File

@ -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);