mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 10:00:13 +01:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
b3e92a800e
commit
bd82eefbf3
1 changed files with 4 additions and 3 deletions
|
|
@ -256,10 +256,11 @@ func Mount(boxID string) (alreadyMount bool, err error) {
|
|||
boxConf.Closed = false
|
||||
box.SaveConf(boxConf)
|
||||
|
||||
box.Index()
|
||||
// 缓存根一级的文档树展开
|
||||
ListDocTree(box.ID, "/", util.SortModeUnassigned, false, false, Conf.FileTree.MaxListCount)
|
||||
util.ClearPushProgress(100)
|
||||
files, _, _ := ListDocTree(box.ID, "/", util.SortModeUnassigned, false, false, Conf.FileTree.MaxListCount)
|
||||
if 0 < len(files) {
|
||||
box.Index()
|
||||
}
|
||||
|
||||
if reMountGuide {
|
||||
return true, nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue