Update GameActivityToggle.plugin.js

This commit is contained in:
Mirco Wittrien 2022-10-02 08:46:13 +02:00 committed by GitHub
parent a94b7062c8
commit 4f85204603
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -130,6 +130,7 @@ module.exports = (_ => {
let SettingsStore = BDFDB.DiscordUtils.getSettingsStore();
if (SettingsStore) BDFDB.PatchUtils.patch(this, SettingsStore, "updateAsync", {after: e => {
if (e.methodArguments[0] != "status") return;
let newSettings = {value: undefined};
e.methodArguments[1](newSettings);
if (newSettings.showCurrentGame != undefined) {