An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: fix https://github.com/siyuan-note/siyuan/issues/8486
Vanessa4cb2875bdaa1
diff --git a/app/src/layout/topBar.ts b/app/src/layout/topBar.tsindex 0e2265cb07..f80a432ac2 100644--- a/app/src/layout/topBar.ts+++ b/app/src/layout/topBar.ts@@ -307,6 +307,7 @@ const openPlugin = (app: App, target: Element) => {app.plugins.forEach((plugin) => {// @ts-ignoreconst hasSetting = plugin.setting || plugin.__proto__.hasOwnProperty("openSetting");+ let hasTopBar = false;plugin.topBarIcons.forEach(item => {const hasUnpin = window.siyuan.storage[Constants.LOCAL_PLUGINTOPUNPIN].includes(item.id);const submenu = [{@@ -351,7 +352,18 @@ const openPlugin = (app: App, target: Element) => {}menu.addItem(menuOption);hasPlugin = true;+ hasTopBar = true;});+ if (!hasTopBar && hasSetting) {+ hasPlugin = true;+ menu.addItem({+ icon: "iconSettings",+ label: plugin.name,+ click() {+ plugin.openSetting();+ }+ });+ }});if (hasPlugin) {