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:
parent
0b3b9e35ba
commit
7bc30b46ff
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user