fix user reset
This commit is contained in:
parent
513692c2d5
commit
c17cbc48d8
|
@ -58,7 +58,7 @@ module.exports = {
|
||||||
},
|
},
|
||||||
updateUser: ({ username, id }) => {
|
updateUser: ({ username, id }) => {
|
||||||
currentStatus.smallImageKey = id ? `https://a.ez-pp.farm/${id}` : " ";
|
currentStatus.smallImageKey = id ? `https://a.ez-pp.farm/${id}` : " ";
|
||||||
currentStatus.smallImageText = username ? username : " ";
|
currentStatus.smallImageText = username ?? " ";
|
||||||
},
|
},
|
||||||
update: () => {
|
update: () => {
|
||||||
if (richPresence && richPresence.user) {
|
if (richPresence && richPresence.user) {
|
||||||
|
|
5
main.js
5
main.js
|
@ -600,7 +600,10 @@ function registerIPCPipes() {
|
||||||
mainWindow.show();
|
mainWindow.show();
|
||||||
mainWindow.focus();
|
mainWindow.focus();
|
||||||
stopOsuStatus();
|
stopOsuStatus();
|
||||||
richPresence.updateUser();
|
richPresence.updateUser({
|
||||||
|
username: " ",
|
||||||
|
id: undefined
|
||||||
|
});
|
||||||
richPresence.updateStatus({
|
richPresence.updateStatus({
|
||||||
state: "Idle in Launcher...",
|
state: "Idle in Launcher...",
|
||||||
details: undefined,
|
details: undefined,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user