mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 00:09:55 +09:00
Reorder initialisation of bindable action binding to make more sense
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user