From 79228dde16e9151bac23fe78f9bd77d6c878e32b Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Tue, 7 Apr 2026 16:50:48 +0800 Subject: [PATCH] :art: The list in the backlink panel no longer collapses automatically https://github.com/siyuan-note/siyuan/issues/17362 Signed-off-by: Daniel <845765@qq.com> --- app/src/protyle/index.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/src/protyle/index.ts b/app/src/protyle/index.ts index ffd61815f..70a8f0100 100644 --- a/app/src/protyle/index.ts +++ b/app/src/protyle/index.ts @@ -306,9 +306,15 @@ export class Protyle { } let needCreateAction = ""; data.data[0].doOperations.find((item: IOperation) => { - if (this.protyle.options.backlinkData && ["delete", "move"].includes(item.action)) { + if (this.protyle.options.backlinkData && ["delete", "move"].includes(item.action)) { // 只对特定情况刷新,否则展开、编辑等操作刷新会频繁 /// #if !MOBILE + if (2 == data.data[0].doOperations.length && "insert" === data.data[0].doOperations[0].action && "delete" === data.data[0].doOperations[1].action) { + // 从反链面板复制块到正文粘贴时不再自动刷新反链面板 + // The list in the backlink panel no longer collapses automatically https://github.com/siyuan-note/siyuan/issues/17362 + return true; + } + getAllModels().backlink.find(backlinkItem => { if (backlinkItem.element.contains(this.protyle.element)) { backlinkItem.refresh();