Skip to content

Commit

Permalink
fix: missing separator for chinese toplevel attachment files
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonmi committed Feb 22, 2025
1 parent d409154 commit 01b84e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,11 @@ export function registerMenu() {
const separatorMenu: MenuitemOptions = {
tag: "menuseparator",
id: `${config.addonRef}-separator`,
isHidden: () =>
isHidden: (e) =>
Zotero.getActiveZoteroPane()
.getSelectedItems()
.some((item) => {
return !(item.isTopLevelItem() && item.isRegularItem());
return !(isChineseTopAttachment(item) || isChinsesSnapshot(item) || item.isRegularItem());
}),
};
const metadataMenu: MenuitemOptions = {
Expand Down

0 comments on commit 01b84e2

Please sign in to comment.