Move binding to LoadComplete

This commit is contained in:
Andrei Zavatski 2019-08-12 14:57:16 +03:00
parent 0070f6b260
commit 21af390327
1 changed files with 5 additions and 1 deletions

View File

@ -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)