mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-03 03:10:16 +01:00
🎨 Sync repo
This commit is contained in:
parent
3d71a2644b
commit
eaa83998a4
6 changed files with 86 additions and 81 deletions
|
|
@ -488,13 +488,9 @@ func InitBoxes() {
|
|||
util.IncBootProgress(1, "Reading block trees...")
|
||||
}
|
||||
}()
|
||||
if err := treenode.ReadBlockTree(); nil == err {
|
||||
initialized = true
|
||||
} else {
|
||||
if err = os.RemoveAll(util.BlockTreePath); nil != err {
|
||||
util.LogErrorf("remove block tree [%s] failed: %s", util.BlockTreePath, err)
|
||||
}
|
||||
}
|
||||
|
||||
treenode.InitBlockTree()
|
||||
initialized = true
|
||||
}
|
||||
} else { // 大于 1 的话说明在同步阶段已经加载过了
|
||||
initialized = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue