Fix StatusWhilePlaying

This commit is contained in:
thororen1234 2024-08-21 21:39:41 -04:00
parent 09e767f1f6
commit cebb70b9ba

View file

@ -47,13 +47,13 @@ export default definePlugin({
RUNNING_GAMES_CHANGE(event) { RUNNING_GAMES_CHANGE(event) {
const status = PresenceStore.getStatus(UserStore.getCurrentUser().id); const status = PresenceStore.getStatus(UserStore.getCurrentUser().id);
if (event.games.length > 0) { if (event.games.length > 0) {
if (savedStatus !== "" && savedStatus !== settings.store.statusToSet)
updateAsync(savedStatus);
} else {
if (status !== settings.store.statusToSet) { if (status !== settings.store.statusToSet) {
savedStatus = status; savedStatus = status;
updateAsync(settings.store.statusToSet); updateAsync(settings.store.statusToSet);
} }
} else {
if (savedStatus !== "" && savedStatus !== settings.store.statusToSet)
updateAsync(savedStatus);
} }
}, },
} }