mirror of
https://github.com/ppy/osu.git
synced 2025-01-18 08:32:54 +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)
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user