Update GameActivityToggle.plugin.js
This commit is contained in:
parent
38d00ea043
commit
175135e67f
|
@ -2,7 +2,7 @@
|
||||||
* @name GameActivityToggle
|
* @name GameActivityToggle
|
||||||
* @author DevilBro
|
* @author DevilBro
|
||||||
* @authorId 278543574059057154
|
* @authorId 278543574059057154
|
||||||
* @version 1.2.7
|
* @version 1.2.8
|
||||||
* @description Adds a Quick-Toggle Game Activity Button
|
* @description Adds a Quick-Toggle Game Activity Button
|
||||||
* @invite Jx3TjNS
|
* @invite Jx3TjNS
|
||||||
* @donate https://www.paypal.me/MircoWittrien
|
* @donate https://www.paypal.me/MircoWittrien
|
||||||
|
@ -115,24 +115,20 @@ module.exports = (_ => {
|
||||||
width: 16,
|
width: 16,
|
||||||
height: 16
|
height: 16
|
||||||
}),
|
}),
|
||||||
|
onClick: _ => {
|
||||||
|
_this.toggle();
|
||||||
|
if (toggleButton) BDFDB.ReactUtils.forceUpdate(toggleButton);
|
||||||
|
},
|
||||||
hint: enabled ? BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.SvgIcon, {
|
hint: enabled ? BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.SvgIcon, {
|
||||||
className: BDFDB.disCN.menucolordefault,
|
className: BDFDB.disCN.menucolordefault,
|
||||||
background: BDFDB.disCN.menucheckbox,
|
background: BDFDB.disCN.menucheckbox,
|
||||||
foreground: BDFDB.disCN.menucheck,
|
foreground: BDFDB.disCN.menucheck,
|
||||||
name: BDFDB.LibraryComponents.SvgIcon.Names.CHECKBOX,
|
name: BDFDB.LibraryComponents.SvgIcon.Names.CHECKBOX,
|
||||||
style: {background: "unset"},
|
style: {background: "unset"}
|
||||||
onClick: _ => {
|
|
||||||
_this.toggle();
|
|
||||||
if (toggleButton) BDFDB.ReactUtils.forceUpdate(toggleButton);
|
|
||||||
}
|
|
||||||
}) : BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.SvgIcon, {
|
}) : BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.SvgIcon, {
|
||||||
className: BDFDB.disCN.menucolordefault,
|
className: BDFDB.disCN.menucolordefault,
|
||||||
name: BDFDB.LibraryComponents.SvgIcon.Names.CHECKBOX_EMPTY,
|
name: BDFDB.LibraryComponents.SvgIcon.Names.CHECKBOX_EMPTY,
|
||||||
style: {background: "unset"},
|
style: {background: "unset"}
|
||||||
onClick: _ => {
|
|
||||||
_this.toggle();
|
|
||||||
if (toggleButton) BDFDB.ReactUtils.forceUpdate(toggleButton);
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue