mirror of
https://github.com/ppy/osu
synced 2025-02-22 05:27:05 +00:00
Fix incorrect usage of nullable in ControlItemMention
This commit is contained in:
parent
d1fd14e287
commit
5d940ded09
@ -18,7 +18,7 @@ namespace osu.Game.Overlays.Chat.ChannelControl
|
||||
{
|
||||
public readonly BindableInt Mentions = new BindableInt();
|
||||
|
||||
private OsuSpriteText? countText;
|
||||
private OsuSpriteText countText = null!;
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OsuColour osuColour, OverlayColourProvider colourProvider)
|
||||
@ -53,7 +53,7 @@ namespace osu.Game.Overlays.Chat.ChannelControl
|
||||
{
|
||||
int mentionCount = change.NewValue;
|
||||
|
||||
countText!.Text = mentionCount > 99 ? "99+" : mentionCount.ToString();
|
||||
countText.Text = mentionCount > 99 ? "99+" : mentionCount.ToString();
|
||||
|
||||
if (mentionCount > 0)
|
||||
Show();
|
||||
|
Loading…
Reference in New Issue
Block a user