From c17cbc48d88490f3f0a73e08694446c9c0d07cfa Mon Sep 17 00:00:00 2001 From: HorizonCode Date: Mon, 11 Mar 2024 18:46:04 +0100 Subject: [PATCH] fix user reset --- electron/richPresence.js | 2 +- main.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/electron/richPresence.js b/electron/richPresence.js index 0132998..5f55283 100644 --- a/electron/richPresence.js +++ b/electron/richPresence.js @@ -58,7 +58,7 @@ module.exports = { }, updateUser: ({ username, id }) => { currentStatus.smallImageKey = id ? `https://a.ez-pp.farm/${id}` : " "; - currentStatus.smallImageText = username ? username : " "; + currentStatus.smallImageText = username ?? " "; }, update: () => { if (richPresence && richPresence.user) { diff --git a/main.js b/main.js index c6736b3..ead9109 100644 --- a/main.js +++ b/main.js @@ -600,7 +600,10 @@ function registerIPCPipes() { mainWindow.show(); mainWindow.focus(); stopOsuStatus(); - richPresence.updateUser(); + richPresence.updateUser({ + username: " ", + id: undefined + }); richPresence.updateStatus({ state: "Idle in Launcher...", details: undefined,