From 38be8d4b674ab5bdf8320dcd47a12d6830351fbf Mon Sep 17 00:00:00 2001 From: windingwind <33902321+windingwind@users.noreply.github.com> Date: Tue, 3 Nov 2026 11:23:35 +0000 Subject: [PATCH] Fix button menu added by API not registered with pluginID --- chrome/content/zotero/xpcom/pluginAPI/buttonManager.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/pluginAPI/buttonManager.js b/chrome/content/zotero/xpcom/pluginAPI/buttonManager.js index 8e6f65fd74..c9e5c069bb 100644 --- a/chrome/content/zotero/xpcom/pluginAPI/buttonManager.js +++ b/chrome/content/zotero/xpcom/pluginAPI/buttonManager.js @@ -270,6 +270,7 @@ Zotero.MenuManager.updateMenuPopup(subPopup, option._menuTarget, { event, getContext, + pluginID: option.pluginID, }); }); } @@ -444,6 +445,7 @@ Zotero.MenuManager.updateMenuPopup(popup, option._menuTarget, { event, getContext: () => this._getContext(reader), + pluginID: option.pluginID, }); }); }); @@ -778,7 +780,10 @@ if (!option._menuTarget) { return; } - Zotero.MenuManager.updateMenuPopup(popupElem, option._menuTarget, args); + Zotero.MenuManager.updateMenuPopup(popupElem, option._menuTarget, { + ...args, + pluginID: option.pluginID, + }); }, updateOverflowPopup(popupElem, options, args) {