Skip to content

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

:art: Simplify dock layout menu state https://github.com/siyuan-note/siyuan/issues/19797

Daniel4fb6b90047d5
diff --git a/app/src/menus/dockLayout.ts b/app/src/menus/dockLayout.ts
index 9a355622a0..0ecc9049aa 100644
--- a/app/src/menus/dockLayout.ts
+++ b/app/src/menus/dockLayout.ts
@@ -7,7 +7,6 @@ export const togglePinDock = (id: "switchLeftDock" | "switchRightDock" | "switch
label: `${isFloating ? window.siyuan.languages.switchToFixedLayout : window.siyuan.languages.switchToFloatingLayout}`,
icon: `${isFloating ? pinIcon : unpinIcon}`,
accelerator: window.siyuan.config.keymap.general[id].custom,
- current: isFloating,
click() {
dock.togglePin();
}