mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-30 05:18:49 +01:00
🎨 Refresh virtual reference cache after doc convert to heading https://github.com/siyuan-note/siyuan/issues/14147
This commit is contained in:
parent
674d645077
commit
cfbd6852e3
2 changed files with 12 additions and 0 deletions
|
|
@ -268,6 +268,10 @@ func Doc2Heading(srcID, targetID string, after bool) (srcTreeBox, srcTreePath st
|
|||
IncSync()
|
||||
RefreshBacklink(srcTree.ID)
|
||||
RefreshBacklink(targetTree.ID)
|
||||
go func() {
|
||||
sql.FlushQueue()
|
||||
ResetVirtualBlockRefCache()
|
||||
}()
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -404,5 +408,9 @@ func Heading2Doc(srcHeadingID, targetBoxID, targetPath, previousPath string) (sr
|
|||
IncSync()
|
||||
RefreshBacklink(srcTree.ID)
|
||||
RefreshBacklink(newTree.ID)
|
||||
go func() {
|
||||
sql.FlushQueue()
|
||||
ResetVirtualBlockRefCache()
|
||||
}()
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue