mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 00:38:49 +01:00
🎨 Refresh virtual block ref when closing box https://github.com/siyuan-note/siyuan/issues/11149#issuecomment-2106254491
This commit is contained in:
parent
b959cc2beb
commit
60380f5dee
4 changed files with 21 additions and 16 deletions
|
|
@ -51,6 +51,7 @@ import (
|
|||
"github.com/siyuan-note/logging"
|
||||
"github.com/siyuan-note/siyuan/kernel/conf"
|
||||
"github.com/siyuan-note/siyuan/kernel/filesys"
|
||||
"github.com/siyuan-note/siyuan/kernel/sql"
|
||||
"github.com/siyuan-note/siyuan/kernel/task"
|
||||
"github.com/siyuan-note/siyuan/kernel/treenode"
|
||||
"github.com/siyuan-note/siyuan/kernel/util"
|
||||
|
|
@ -649,6 +650,10 @@ func checkoutRepo(id string) {
|
|||
|
||||
task.AppendTask(task.DatabaseIndexFull, fullReindex)
|
||||
task.AppendTask(task.DatabaseIndexRef, IndexRefs)
|
||||
go func() {
|
||||
sql.WaitForWritingDatabase()
|
||||
ResetVirtualBlockRefCache()
|
||||
}()
|
||||
task.AppendTask(task.ReloadUI, util.ReloadUIResetScroll)
|
||||
|
||||
if syncEnabled {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue