From 7b31cc336e39043f391c678552d3213232c08a66 Mon Sep 17 00:00:00 2001 From: MuiseDestiny Date: Tue, 23 Apr 2024 09:36:25 +0800 Subject: [PATCH] fix: #89 --- addon/chrome/content/preferences.xhtml | 159 +++++++------------------ package.json | 4 +- src/modules/menu.ts | 2 +- update-beta.json | 2 +- update.json | 2 +- 5 files changed, 46 insertions(+), 123 deletions(-) diff --git a/addon/chrome/content/preferences.xhtml b/addon/chrome/content/preferences.xhtml index 734c126..2ce6158 100644 --- a/addon/chrome/content/preferences.xhtml +++ b/addon/chrome/content/preferences.xhtml @@ -1,10 +1,7 @@ - + @@ -141,46 +97,29 @@ - + - + - - - + + + + + + + + - + @@ -192,38 +131,22 @@ - - + \ No newline at end of file diff --git a/package.json b/package.json index b02b21c..32f0384 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "zotero-attanger", - "version": "1.1.9", + "version": "1.2.0", "description": "Attanger for Zotero", "config": { "addonName": "Zotero Attanger", @@ -134,4 +134,4 @@ "after:release": "echo Successfully released ${name} v${version} to ${repo.repository}." } } -} +} \ No newline at end of file diff --git a/src/modules/menu.ts b/src/modules/menu.ts index 3fb7310..4e120c2 100644 --- a/src/modules/menu.ts +++ b/src/modules/menu.ts @@ -566,7 +566,7 @@ export async function moveFile(attItem: Zotero.Item) { // @ts-ignore 未添加属性 Zotero.File.getValidFileName = _getValidFileName; ztoolkit.log("subfolder", subfolder); - destDir = PathUtils.normalize(PathUtils.joinRelative(destDir, subfolder)); + destDir = PathUtils.joinRelative(destDir, subfolder); } const sourcePath = (await attItem.getFilePathAsync()) as string; if (!sourcePath) return; diff --git a/update-beta.json b/update-beta.json index 4b1a4c0..434d93f 100644 --- a/update-beta.json +++ b/update-beta.json @@ -3,7 +3,7 @@ "zoteroattanger@polygon.org": { "updates": [ { - "version": "1.1.9", + "version": "1.2.0", "update_link": "https://github.com/muisedestiny/zotero-attanger/releases/latest/download/zotero-attanger.xpi", "applications": { "zotero": { diff --git a/update.json b/update.json index 4b1a4c0..434d93f 100644 --- a/update.json +++ b/update.json @@ -3,7 +3,7 @@ "zoteroattanger@polygon.org": { "updates": [ { - "version": "1.1.9", + "version": "1.2.0", "update_link": "https://github.com/muisedestiny/zotero-attanger/releases/latest/download/zotero-attanger.xpi", "applications": { "zotero": {