1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-02 01:01:18 +08:00

Merge pull request #24605 from peppy/fix-drawable-menu-item-crash

Fix potential crash when loading menu items due to cross-thread ops
This commit is contained in:
Bartłomiej Dach
2023-08-21 16:52:24 +02:00
committed by GitHub
Unverified
@@ -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()