Skip to content
This repository was archived by the owner on Feb 1, 2022. It is now read-only.

Commit c92de1f

Browse files
authored
Merge pull request #36 from Tustin/development
more tired programming mistakes >.>
2 parents d54815b + dfcc9a4 commit c92de1f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/app.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,11 @@ function updateRichPresence() : void
258258

259259
log.info('DiscordController stopped because the user is not online on PlayStation');
260260
}
261+
262+
// Just update the form like this so we don't update rich presence.
263+
mainWindow.webContents.send('presence-data', {
264+
details: 'Offline'
265+
});
261266
}
262267
else if (profile.primaryOnlineStatus === 'online')
263268
{
@@ -377,11 +382,6 @@ function updateRichPresence() : void
377382
log.error('Failed updating rich presence', err);
378383
});
379384
}
380-
381-
// Just update the form like this so we don't update rich presence.
382-
mainWindow.webContents.send('presence-data', {
383-
details: 'Offline'
384-
});
385385
}
386386

387387
mainWindow.webContents.send('profile-data', profile);

0 commit comments

Comments
 (0)