1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 14:12:55 +08:00

Remove unnecessary intermediate method

This commit is contained in:
smoogipoo 2019-08-05 13:18:29 +09:00
parent cd7b6d2d27
commit d839717131

View File

@ -40,12 +40,7 @@ namespace osu.Game.Overlays.Profile.Header.Components
{
base.LoadComplete();
User.BindValueChanged(onUserChanged, true);
}
private void onUserChanged(ValueChangedEvent<User> user)
{
SetDefaultRuleset(Rulesets.GetRuleset(user.NewValue?.PlayMode ?? "osu"));
User.BindValueChanged(u => SetDefaultRuleset(Rulesets.GetRuleset(u.NewValue?.PlayMode ?? "osu")), true);
}
public void SetDefaultRuleset(RulesetInfo ruleset)