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:
parent
52a8f3848d
commit
4a370f429e
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user