add dynamic beatmap images to presence #12

Merged
HorizonCode merged 8 commits from dev into master 2024-03-11 17:55:54 +00:00
2 changed files with 5 additions and 2 deletions
Showing only changes of commit c17cbc48d8 - Show all commits

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,