mirror of
https://github.com/ppy/osu.git
synced 2025-01-30 23:23:18 +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();
|
base.LoadComplete();
|
||||||
|
|
||||||
User.BindValueChanged(onUserChanged, true);
|
User.BindValueChanged(u => SetDefaultRuleset(Rulesets.GetRuleset(u.NewValue?.PlayMode ?? "osu")), true);
|
||||||
}
|
|
||||||
|
|
||||||
private void onUserChanged(ValueChangedEvent<User> user)
|
|
||||||
{
|
|
||||||
SetDefaultRuleset(Rulesets.GetRuleset(user.NewValue?.PlayMode ?? "osu"));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetDefaultRuleset(RulesetInfo ruleset)
|
public void SetDefaultRuleset(RulesetInfo ruleset)
|
||||||
|
Loading…
Reference in New Issue
Block a user