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
1 changed files with 3 additions and 3 deletions

View File

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