mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 08:52:55 +08:00
Fix references to UserActivities
This commit is contained in:
parent
001a7975d5
commit
9faba94978
@ -60,12 +60,12 @@ namespace osu.Desktop
|
|||||||
|
|
||||||
switch (a)
|
switch (a)
|
||||||
{
|
{
|
||||||
case UserActivitySoloGame game:
|
case UserActivity.SoloGame game:
|
||||||
presence.State = $"{game.Beatmap.Metadata.Artist} - {game.Beatmap.Metadata.Title} [{game.Beatmap.Version}]";
|
presence.State = $"{game.Beatmap.Metadata.Artist} - {game.Beatmap.Metadata.Title} [{game.Beatmap.Version}]";
|
||||||
setPresenceGamemode(game.Ruleset, presence);
|
setPresenceGamemode(game.Ruleset, presence);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case UserActivityEditing editing:
|
case UserActivity.Editing editing:
|
||||||
presence.State = $"{editing.Beatmap.Metadata.Artist} - {editing.Beatmap.Metadata.Title} " + (!string.IsNullOrEmpty(editing.Beatmap.Version) ? $"[{editing.Beatmap.Version}]" : "");
|
presence.State = $"{editing.Beatmap.Metadata.Artist} - {editing.Beatmap.Metadata.Title} " + (!string.IsNullOrEmpty(editing.Beatmap.Version) ? $"[{editing.Beatmap.Version}]" : "");
|
||||||
presence.Assets.SmallImageKey = "edit";
|
presence.Assets.SmallImageKey = "edit";
|
||||||
presence.Assets.SmallImageText = "editing";
|
presence.Assets.SmallImageText = "editing";
|
||||||
|
Loading…
Reference in New Issue
Block a user