Thank you for continuing to add new plugin APIs! I've been testing this new menu items API and have some issues and questions.
I copied the example from the linked Z8 documentation page, but I can't get the `onCommand` callback to trigger. The `onShowing`, `onShown`, `onHiding`, and `onHidden` callbacks all trigger as expected. I stepped through with the debugger and saw the
call to addEventListener("command" happening, but clicking on the menu item does not trigger the
menuCommandListener. Any idea why that may be?
I was trying to determine if I should call `Zotero.MenuManager.registerMenu` from my plugin's `startup` or `onMainWindowLoad` bootstrap functions. Calling it from `startup` seems to work, even after closing and reopening the main Zotero window (on macOS). I still have separate code to load my l10n (ftl) file from `onMainWindowLoad`. Is that the correct approach? I see there's an `l10nFiles` option
documented, but it
doesn’t seem to be implemented.
I also noticed an error being thrown when shutting down my plugin—see screenshot below. It appears this happens because the
call to `super._unregisterByPluginID` does not await the returned promise. This appears to break the menu such that it no longer opens at all.
Thanks!
David