1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-18 11:52:54 +08:00

Clear Discord presence when logged out

This commit is contained in:
Dan Balasescu 2025-01-15 17:48:22 +09:00
parent b7a9b77efe
commit 7ca3a6fc26
No known key found for this signature in database

View File

@ -145,7 +145,7 @@ namespace osu.Desktop
if (!client.IsInitialized) if (!client.IsInitialized)
return; return;
if (status.Value == UserStatus.Offline || privacyMode.Value == DiscordRichPresenceMode.Off) if (!api.IsLoggedIn || status.Value == UserStatus.Offline || privacyMode.Value == DiscordRichPresenceMode.Off)
{ {
client.ClearPresence(); client.ClearPresence();
return; return;