From bce485dfd6dbc89fd95e725f0203fa4ca365015c Mon Sep 17 00:00:00 2001 From: purocean Date: Fri, 5 Jul 2024 19:24:03 +0800 Subject: [PATCH] refactor: update file-tree-context-menu to improve duplicate functionality --- src/renderer/plugins/file-tree-context-menu.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/plugins/file-tree-context-menu.ts b/src/renderer/plugins/file-tree-context-menu.ts index 47e198ca..2e7e2aa9 100644 --- a/src/renderer/plugins/file-tree-context-menu.ts +++ b/src/renderer/plugins/file-tree-context-menu.ts @@ -43,7 +43,7 @@ export default { } return [ - ...(isMarkdown && !ctx.doc.isEncrypted(node) ? [ + ...(!ctx.doc.isEncrypted(node) ? [ { id: 'duplicate', label: t('tree.context-menu.duplicate'), onClick: () => ctx.doc.duplicateDoc(node), ellipsis: true }, ] : []), ...(node.type === 'dir' ? [