An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: Restore repeated backlink folding https://github.com/siyuan-note/siyuan/issues/19259
Daniele94299607ba9
diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.tsindex 5fd5e9c4c9..5162bee958 100644--- a/app/src/protyle/gutter/index.ts+++ b/app/src/protyle/gutter/index.ts@@ -401,13 +401,16 @@ export class Gutter {if (buttonElement.getAttribute("disabled")) {return;}- buttonElement.setAttribute("disabled", "disabled");const blockButtonElement = buttonElement.previousElementSibling || buttonElement.nextElementSibling;const foldElement = this.getNodeElement(protyle, blockButtonElement);if (!foldElement) {hideElements(["gutter"], protyle);return;}+ // 视图折叠直接更新局部状态,只有文档折叠需要禁用按钮并等待事务恢复。+ if (!hasViewFoldContext(protyle)) {+ buttonElement.setAttribute("disabled", "disabled");+ }let foldStatus = -1;if (event.altKey && foldElement.getAttribute("data-type") === "NodeHeading") {foldHeadingGroup(protyle, foldElement, "children").finally(() => {