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:
parent
cd7b6d2d27
commit
d839717131
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user