mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 02:02:53 +08:00
Fix potential crash when loading menu items due to cross-thread ops
This commit is contained in:
parent
4915b2563c
commit
5f040a991b
@ -40,8 +40,14 @@ namespace osu.Game.Graphics.UserInterface
|
||||
AddInternal(hoverClickSounds = new HoverClickSounds());
|
||||
|
||||
updateTextColour();
|
||||
}
|
||||
|
||||
protected override void LoadComplete()
|
||||
{
|
||||
base.LoadComplete();
|
||||
|
||||
Item.Action.BindDisabledChanged(_ => updateState(), true);
|
||||
FinishTransforms();
|
||||
}
|
||||
|
||||
private void updateTextColour()
|
||||
|
Loading…
Reference in New Issue
Block a user