mirror of
https://github.com/ppy/osu.git
synced 2025-03-28 00:07:20 +08: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();
|
public readonly BindableInt Mentions = new BindableInt();
|
||||||
|
|
||||||
private OsuSpriteText? countText;
|
private OsuSpriteText countText = null!;
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(OsuColour osuColour, OverlayColourProvider colourProvider)
|
private void load(OsuColour osuColour, OverlayColourProvider colourProvider)
|
||||||
@ -53,7 +53,7 @@ namespace osu.Game.Overlays.Chat.ChannelControl
|
|||||||
{
|
{
|
||||||
int mentionCount = change.NewValue;
|
int mentionCount = change.NewValue;
|
||||||
|
|
||||||
countText!.Text = mentionCount > 99 ? "99+" : mentionCount.ToString();
|
countText.Text = mentionCount > 99 ? "99+" : mentionCount.ToString();
|
||||||
|
|
||||||
if (mentionCount > 0)
|
if (mentionCount > 0)
|
||||||
Show();
|
Show();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user