mirror of
https://github.com/ppy/osu.git
synced 2025-01-18 05:42:56 +08:00
Clear Discord presence when logged out
This commit is contained in:
parent
b7a9b77efe
commit
7ca3a6fc26
@ -145,7 +145,7 @@ namespace osu.Desktop
|
||||
if (!client.IsInitialized)
|
||||
return;
|
||||
|
||||
if (status.Value == UserStatus.Offline || privacyMode.Value == DiscordRichPresenceMode.Off)
|
||||
if (!api.IsLoggedIn || status.Value == UserStatus.Offline || privacyMode.Value == DiscordRichPresenceMode.Off)
|
||||
{
|
||||
client.ClearPresence();
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user