1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 14:07:25 +08:00

Update to consume framework fixes

This commit is contained in:
Dean Herbert 2020-09-30 20:27:02 +09:00
parent f9d6aed2df
commit a11c74d600

View File

@ -76,7 +76,7 @@ namespace osu.Game.Screens.Edit.Timing
private OsuButton deleteButton;
private ControlPointTable table;
private BindableList<ControlPointGroup> controlGroups;
private IBindableList<ControlPointGroup> controlGroups;
[Resolved]
private EditorClock clock { get; set; }
@ -141,8 +141,7 @@ namespace osu.Game.Screens.Edit.Timing
selectedGroup.BindValueChanged(selected => { deleteButton.Enabled.Value = selected.NewValue != null; }, true);
// todo: remove cast after https://github.com/ppy/osu-framework/pull/3906 is merged
controlGroups = (BindableList<ControlPointGroup>)Beatmap.Value.Beatmap.ControlPointInfo.Groups.GetBoundCopy();
controlGroups = Beatmap.Value.Beatmap.ControlPointInfo.Groups.GetBoundCopy();
controlGroups.BindCollectionChanged((sender, args) =>
{