mirror of https://github.com/ppy/osu
Move binding to LoadComplete
This commit is contained in:
parent
0070f6b260
commit
21af390327
|
@ -38,8 +38,12 @@ public LeaderboardModSelector()
|
|||
Direction = FillDirection.Full,
|
||||
Spacing = new Vector2(4),
|
||||
};
|
||||
}
|
||||
|
||||
Ruleset.BindValueChanged(onRulesetChanged);
|
||||
protected override void LoadComplete()
|
||||
{
|
||||
base.LoadComplete();
|
||||
Ruleset.BindValueChanged(onRulesetChanged, true);
|
||||
}
|
||||
|
||||
private void onRulesetChanged(ValueChangedEvent<RulesetInfo> ruleset)
|
||||
|
|
Loading…
Reference in New Issue