Skip to content

Commit

Permalink
1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
MuiseDestiny committed Dec 29, 2023
1 parent 2c81495 commit 00d92e3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion addon/locale/en-US/preferences.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ source-title = Source Path
source-intro = <Attach New File> will retrieve the recently added file from this directory and attach it to the Zotero Item/Collection.
attach-title = Attach Type
attach-intro = If using Zotero's official sync, choose <Stored Copy>; if using third-party sync such as Nutstore, OneDrive, etc., choose <Link> and properly configure the <Destination Path>. Files will be moved to the destination path and then imported into Zotero as a link attachment.
attach-intro = If using Zotero's official or WebDAV sync, choose <Stored Copy>; if using third-party sync such as Nutstore, OneDrive, etc., choose <Link> and properly configure the <Destination Path>. Files will be moved to the destination path and then imported into Zotero as a link attachment.
attach-type-start = Attach file
attach-type-end = to the Zotero Item/Collection
importing =
Expand Down
2 changes: 1 addition & 1 deletion addon/locale/zh-CN/preferences.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ source-title = 源路径
source-intro = <附加新文件> 会从该目录检索最近添加的文件并附加到 Zotero 条目/分类下。
attach-title = 附加类型
attach-intro = 若使用 Zotero 官方同步,请选择 <作为副本>;若使用第三方官方同步,如坚果云、OneDrive等,请选择 <作为链接> 并认真配置 <靶路径>,文件将会被移动到靶路径下后作为链接类型附件导入 Zotero。
attach-intro = 若使用 Zotero 官方或 WebDAV 同步,请选择 <作为副本>;若使用第三方官方同步,如坚果云、OneDrive等,请选择 <作为链接> 并认真配置 <靶路径>,文件将会被移动到靶路径下后作为链接类型附件导入 Zotero。
attach-type-start = 附加文件
attach-type-end = 到 Zotero 的条目/分类下
importing =
Expand Down
7 changes: 4 additions & 3 deletions src/modules/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ export default class Menu {
JSON.stringify(fileHandlerArr),
);
await ztoolkit.Menu.unregisterAll();
new Menu();
new Menu()
;
});
};
ztoolkit.Menu.register("item", {
Expand Down Expand Up @@ -470,8 +471,8 @@ function getCollectionPathsOfItem(item: Zotero.Item) {
}
return OS.Path.normalize(
getCollectionPath(collection.parentID) +
addon.data.folderSep +
collection.name,
addon.data.folderSep +
collection.name,
) as string;
};
try {
Expand Down
Binary file not shown.

0 comments on commit 00d92e3

Please sign in to comment.