fix user reset

This commit is contained in:
HorizonCode 2024-03-11 18:46:04 +01:00
parent 513692c2d5
commit c17cbc48d8
2 changed files with 5 additions and 2 deletions

View File

@ -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) {

View File

@ -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,