From bd82eefbf343a7f763f75a51f20bd1d2ea2e41d6 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Mon, 22 Dec 2025 10:29:52 +0800 Subject: [PATCH] :art: Fix https://github.com/siyuan-note/siyuan/issues/16660 Signed-off-by: Daniel <845765@qq.com> --- kernel/model/mount.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/kernel/model/mount.go b/kernel/model/mount.go index 6955b58dc..6ac4df43a 100644 --- a/kernel/model/mount.go +++ b/kernel/model/mount.go @@ -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