mirror of
https://github.com/osukey/osukey.git
synced 2025-06-05 12:57:39 +09: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()
|
protected override void LoadComplete()
|
||||||
{
|
{
|
||||||
|
Active.BindDisabledChanged(disabled => Action = disabled ? (Action?)null : Active.Toggle, true);
|
||||||
Active.BindValueChanged(_ =>
|
Active.BindValueChanged(_ =>
|
||||||
{
|
{
|
||||||
updateActiveState();
|
updateActiveState();
|
||||||
@ -54,9 +55,6 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
});
|
});
|
||||||
|
|
||||||
updateActiveState();
|
updateActiveState();
|
||||||
|
|
||||||
Active.BindDisabledChanged(disabled => Action = disabled ? (Action?)null : Active.Toggle, true);
|
|
||||||
|
|
||||||
base.LoadComplete();
|
base.LoadComplete();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user