mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
Fix incorrect usage of nullable in ControlItemMention
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user