From 175135e67f8f6ce8b87d6aeae2ab155f37b6b1e0 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Sat, 16 Nov 2024 16:58:07 +0100 Subject: [PATCH] Update GameActivityToggle.plugin.js --- .../GameActivityToggle.plugin.js | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/Plugins/GameActivityToggle/GameActivityToggle.plugin.js b/Plugins/GameActivityToggle/GameActivityToggle.plugin.js index 155d9733f1..410d05bcef 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.2.7 + * @version 1.2.8 * @description Adds a Quick-Toggle Game Activity Button * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -115,24 +115,20 @@ module.exports = (_ => { width: 16, height: 16 }), + onClick: _ => { + _this.toggle(); + if (toggleButton) BDFDB.ReactUtils.forceUpdate(toggleButton); + }, hint: enabled ? BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.SvgIcon, { className: BDFDB.disCN.menucolordefault, background: BDFDB.disCN.menucheckbox, foreground: BDFDB.disCN.menucheck, name: BDFDB.LibraryComponents.SvgIcon.Names.CHECKBOX, - style: {background: "unset"}, - onClick: _ => { - _this.toggle(); - if (toggleButton) BDFDB.ReactUtils.forceUpdate(toggleButton); - } + style: {background: "unset"} }) : BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.SvgIcon, { className: BDFDB.disCN.menucolordefault, name: BDFDB.LibraryComponents.SvgIcon.Names.CHECKBOX_EMPTY, - style: {background: "unset"}, - onClick: _ => { - _this.toggle(); - if (toggleButton) BDFDB.ReactUtils.forceUpdate(toggleButton); - } + style: {background: "unset"} }) }); }