mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Improve reference count update after document convert to heading https://github.com/siyuan-note/siyuan/issues/15299
This commit is contained in:
parent
ef0a278334
commit
62d560e7a8
8 changed files with 28 additions and 57 deletions
|
|
@ -151,7 +151,7 @@ func ReloadProtyle(rootID string) {
|
|||
}
|
||||
|
||||
// refreshRefCount 用于刷新定义块处的引用计数。
|
||||
func refreshRefCount(rootID, blockID string) {
|
||||
func refreshRefCount(blockID string) {
|
||||
sql.FlushQueue()
|
||||
|
||||
bt := treenode.GetBlockTree(blockID)
|
||||
|
|
@ -177,7 +177,7 @@ func refreshRefCount(rootID, blockID string) {
|
|||
defIDs = append(defIDs, bt.ID)
|
||||
}
|
||||
|
||||
util.PushSetDefRefCount(rootID, blockID, defIDs, refCount, rootRefCount)
|
||||
util.PushSetDefRefCount(bt.RootID, blockID, defIDs, refCount, rootRefCount)
|
||||
}
|
||||
|
||||
// refreshDynamicRefText 用于刷新块引用的动态锚文本。
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue