Update GameActivityToggle.plugin.js
This commit is contained in:
parent
75ddee5c93
commit
eb8519ebf4
|
@ -2,7 +2,7 @@
|
|||
* @name GameActivityToggle
|
||||
* @author DevilBro
|
||||
* @authorId 278543574059057154
|
||||
* @version 1.2.5
|
||||
* @version 1.2.6
|
||||
* @description Adds a Quick-Toggle Game Activity Button
|
||||
* @invite Jx3TjNS
|
||||
* @donate https://www.paypal.me/MircoWittrien
|
||||
|
@ -223,7 +223,7 @@ module.exports = (_ => {
|
|||
}
|
||||
|
||||
processMenu (e) {
|
||||
if (!this.settings.general.showItem || e.instance.props.navId != "account") return;
|
||||
if (!this.settings.general.showItem || (e.instance.props.navId != "account" && e.instance.props.navId != "status")) return;
|
||||
let [_, oldIndex] = BDFDB.ContextMenuUtils.findItem(e.instance, {id: BDFDB.ContextMenuUtils.createItemId(this.name, "activity-toggle")});
|
||||
if (oldIndex > -1) return;
|
||||
let [children, index] = BDFDB.ContextMenuUtils.findItem(e.instance, {id: ["custom-status", "set-custom-status", "edit-custom-status"]});
|
||||
|
|
Loading…
Reference in New Issue