1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 09:32:55 +08:00

Use BindValueChanged with last running immediately instead

This commit is contained in:
Salman Ahmed 2021-07-23 07:51:58 +03:00
parent 0b3b9e35ba
commit 7bc30b46ff

View File

@ -125,10 +125,10 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
comboIndexBindable = comboInfo.ComboIndexBindable.GetBoundCopy();
comboIndexWithOffsetsBindable = comboInfo.ComboIndexWithOffsetsBindable.GetBoundCopy();
comboIndexBindable.ValueChanged += _ => updateColour();
comboIndexWithOffsetsBindable.ValueChanged += _ => updateColour();
comboIndexBindable.BindValueChanged(_ => updateColour());
comboIndexWithOffsetsBindable.BindValueChanged(_ => updateColour(), true);
skin.SourceChanged += updateColour;
updateColour();
break;
}
}