1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 07:42:57 +08:00

Fix CI inspections.

This commit is contained in:
Lucas A 2019-06-12 13:14:01 +02:00
parent 9faba94978
commit 4275f70cf4

View File

@ -60,12 +60,12 @@ namespace osu.Desktop
switch (a)
{
case UserActivity.SoloGame game:
case SoloGame game:
presence.State = $"{game.Beatmap.Metadata.Artist} - {game.Beatmap.Metadata.Title} [{game.Beatmap.Version}]";
setPresenceGamemode(game.Ruleset, presence);
break;
case UserActivity.Editing editing:
case Editing editing:
presence.State = $"{editing.Beatmap.Metadata.Artist} - {editing.Beatmap.Metadata.Title} " + (!string.IsNullOrEmpty(editing.Beatmap.Version) ? $"[{editing.Beatmap.Version}]" : "");
presence.Assets.SmallImageKey = "edit";
presence.Assets.SmallImageText = "editing";