mirror of https://github.com/ppy/osu
Use `BindValueChanged` with last running immediately instead
This commit is contained in:
parent
0b3b9e35ba
commit
7bc30b46ff
|
@ -125,10 +125,10 @@ protected override void LoadComplete()
|
|||
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