mirror of https://github.com/ppy/osu
Merge pull request #11916 from bdach/restore-default-transform-mutation
Fix restore default button potentially mutating transforms during load
This commit is contained in:
commit
3bb46cd8cc
|
@ -207,7 +207,9 @@ public void SetButtonColour(Color4 buttonColour)
|
|||
UpdateState();
|
||||
}
|
||||
|
||||
public void UpdateState()
|
||||
public void UpdateState() => Scheduler.AddOnce(updateState);
|
||||
|
||||
private void updateState()
|
||||
{
|
||||
if (bindable == null)
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue