Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:lipstick:

Vanessa620ed9c13a6f
diff --git a/app/src/protyle/breadcrumb/index.ts b/app/src/protyle/breadcrumb/index.ts
index 0c46cfd5cf..db489b4b1b 100644
--- a/app/src/protyle/breadcrumb/index.ts
+++ b/app/src/protyle/breadcrumb/index.ts
@@ -261,7 +261,9 @@ export class Breadcrumb {
}
}).element);
}
- window.siyuan.menus.menu.append(new MenuItem({type: "separator"}).element);
+ if (window.siyuan.menus.menu.element.childElementCount > 0) {
+ window.siyuan.menus.menu.append(new MenuItem({type: "separator"}).element);
+ }
window.siyuan.menus.menu.append(new MenuItem({
icon: "iconRefresh",
accelerator: window.siyuan.config.keymap.editor.general.refresh.custom,