diff --git a/addon/chrome/content/overlay.xul b/addon/chrome/content/overlay.xul index 005faca..b8f3777 100644 --- a/addon/chrome/content/overlay.xul +++ b/addon/chrome/content/overlay.xul @@ -57,13 +57,13 @@ - + - + - + diff --git a/src/views.ts b/src/views.ts index 375b154..66b1dcb 100644 --- a/src/views.ts +++ b/src/views.ts @@ -756,8 +756,12 @@ class AddonViews extends AddonBase { } } - updateTemplateMenu(type: "Note" | "Item" | "Text") { - const _window = this._Addon.knowledge.getWorkspaceWindow(); + updateTemplateMenu( + type: "Note" | "Item" | "Text", + from: "tab" | "window" = "window" + ) { + const _window = + from === "window" ? this._Addon.knowledge.getWorkspaceWindow() : window; Zotero.debug(`updateTemplateMenu, ${this.currentOutline}`); let templates = this._Addon.template .getTemplateKeys()