mirror of
https://github.com/ppy/osu.git
synced 2025-02-05 17:02:58 +08:00
Fix potential nullref
This commit is contained in:
parent
4d7d4b7389
commit
d7fa6933be
@ -158,14 +158,19 @@ namespace osu.Game.Users
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
Status.ValueChanged += displayStatus;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(OsuColour colours)
|
private void load(OsuColour colours)
|
||||||
{
|
{
|
||||||
this.colours = colours;
|
this.colours = colours;
|
||||||
|
Status.ValueChanged += displayStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void LoadComplete()
|
||||||
|
{
|
||||||
|
base.LoadComplete();
|
||||||
|
Status.TriggerChange();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void displayStatus(UserStatus status)
|
private void displayStatus(UserStatus status)
|
||||||
|
Loading…
Reference in New Issue
Block a user