1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 11:27:24 +08:00

Resolve CA errors #2

This commit is contained in:
Craftplacer 2020-01-18 16:18:17 +01:00
parent 64fe9692ed
commit 8a9c90c5e6
2 changed files with 2 additions and 4 deletions

View File

@ -42,7 +42,7 @@ namespace osu.Game.Online.Chat
/// </summary>
public bool IsActive => chatOverlay?.IsPresent == true;
private List<PrivateMessageNotification> privateMessageNotifications = new List<PrivateMessageNotification>();
private readonly List<PrivateMessageNotification> privateMessageNotifications = new List<PrivateMessageNotification>();
[BackgroundDependencyLoader]
private void load(OsuConfigManager config, IAPIProvider api)
@ -204,8 +204,7 @@ namespace osu.Game.Online.Chat
public int MessageCount
{
get => messageCount;
set => Text = (messageCount = value) > 1 ? $"You received {messageCount} private messages from '{Username}'. Click to read it!"
: $"You received a private message from '{Username}'. Click to read it!";
set => Text = (messageCount = value) > 1 ? $"You received {messageCount} private messages from '{Username}'. Click to read it!" : $"You received a private message from '{Username}'. Click to read it!";
}
public string Username { get; set; }

View File

@ -15,7 +15,6 @@ using osuTK.Graphics;
using osu.Framework.Extensions.Color4Extensions;
using osu.Framework.Allocation;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Colour;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.Shapes;