diff --git a/package.json b/package.json index ec61303..e526086 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ }, "homepage": "https://github.com/syt2/zotero-tldr#readme", "dependencies": { - "zotero-plugin-toolkit": "^2.3.15" + "zotero-plugin-toolkit": "^2.3.29" }, "devDependencies": { "@types/node": "^20.10.4", @@ -131,4 +131,4 @@ "after:bump": "npm run build" } } -} \ No newline at end of file +} diff --git a/src/hooks.ts b/src/hooks.ts index 0794f2e..fc88cf9 100644 --- a/src/hooks.ts +++ b/src/hooks.ts @@ -165,7 +165,6 @@ function onUpdateItems(items: Zotero.Item[], forceFetch: boolean = false) { ? succeedItems.push(item) : failedItems.push(item); await Zotero.Promise.delay(50); - ztoolkit.ItemBox.refresh(); popupWin.changeLine({ progress: (index * 100) / count, text: `${getString("popWindow-waiting")}: ${ diff --git a/src/modules/Common.ts b/src/modules/Common.ts index 61a5018..19ee074 100644 --- a/src/modules/Common.ts +++ b/src/modules/Common.ts @@ -41,7 +41,7 @@ export class RegisterFactory { export class UIFactory { // item右键菜单 static registerRightClickMenuItem() { - const menuIcon = `chrome://${config.addonRef}/content/icons/favicon@0.5x.png`; + const menuIcon = `chrome://${config.addonRef}/content/icons/favicon.png`; // item menuitem with icon ztoolkit.Menu.register("item", { tag: "menuitem", @@ -57,7 +57,7 @@ export class UIFactory { // collection右键菜单 static registerRightClickCollectionMenuItem() { - const menuIcon = `chrome://${config.addonRef}/content/icons/favicon@0.5x.png`; + const menuIcon = `chrome://${config.addonRef}/content/icons/favicon.png`; ztoolkit.Menu.register("collection", { tag: "menuitem", id: "zotero-collectionmenu-tldr",