Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-12-22 10:29:52 +08:00
parent b3e92a800e
commit bd82eefbf3
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -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