mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 16:02:55 +08:00
Don't update rich presence if the rpc client isn't initialized.
This commit is contained in:
parent
9a9c01bc92
commit
ec95cbd0af
@ -75,6 +75,9 @@ namespace osu.Desktop
|
||||
|
||||
private void updateStatus()
|
||||
{
|
||||
if (!client.IsInitialized)
|
||||
return;
|
||||
|
||||
if (status.Value is UserStatusOffline)
|
||||
{
|
||||
client.ClearPresence();
|
||||
|
Loading…
Reference in New Issue
Block a user