From 63efc3540dcc93e86fa9bdbc67bf773fb30a49f0 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Mon, 10 Jan 2022 13:36:10 +0100 Subject: [PATCH] Update GameActivityToggle.plugin.js --- Plugins/GameActivityToggle/GameActivityToggle.plugin.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Plugins/GameActivityToggle/GameActivityToggle.plugin.js b/Plugins/GameActivityToggle/GameActivityToggle.plugin.js index 3708453c6c..42bdbe93b2 100644 --- a/Plugins/GameActivityToggle/GameActivityToggle.plugin.js +++ b/Plugins/GameActivityToggle/GameActivityToggle.plugin.js @@ -2,7 +2,7 @@ * @name GameActivityToggle * @author DevilBro * @authorId 278543574059057154 - * @version 1.0.7 + * @version 1.0.8 * @description Adds a Quick-Toggle Game Activity Button * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -17,7 +17,7 @@ module.exports = (_ => { "info": { "name": "GameActivityToggle", "author": "DevilBro", - "version": "1.0.7", + "version": "1.0.8", "description": "Adds a Quick-Toggle Game Activity Button" } }; @@ -135,7 +135,7 @@ module.exports = (_ => { if (BDFDB.LibraryModules.SettingsUtils) BDFDB.PatchUtils.patch(this, BDFDB.LibraryModules.SettingsUtils.ShowCurrentGame, "updateSetting", {after: e => { if (toggleButton) toggleButton.props.forceState = e.methodArguments[0]; BDFDB.ReactUtils.forceUpdate(toggleButton); - BDFDB.DataUtils.save({date: new Date(), value: BDFDB.DiscordUtils.getSettings("ShowCurrentGame")}, this, "cachedState"); + BDFDB.DataUtils.save({date: new Date(), value: e.methodArguments[0]}, this, "cachedState"); }}); BDFDB.PatchUtils.forceAllUpdates(this);