1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 09:07:25 +08:00

Reorder initialisation of bindable action binding to make more sense

This commit is contained in:
Dean Herbert 2022-04-26 18:21:46 +09:00
parent 52a8f3848d
commit 4a370f429e

View File

@ -47,6 +47,7 @@ namespace osu.Game.Graphics.UserInterface
protected override void LoadComplete()
{
Active.BindDisabledChanged(disabled => Action = disabled ? (Action?)null : Active.Toggle, true);
Active.BindValueChanged(_ =>
{
updateActiveState();
@ -54,9 +55,6 @@ namespace osu.Game.Graphics.UserInterface
});
updateActiveState();
Active.BindDisabledChanged(disabled => Action = disabled ? (Action?)null : Active.Toggle, true);
base.LoadComplete();
}