From 5e44e3b5f8e75b09cee52481dea6223889aff12a Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Fri, 25 Nov 2022 21:52:13 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E5=90=AF=E5=8A=A8=E6=97=B6=E4=B8=8D?= =?UTF-8?q?=E5=86=8D=E7=BC=93=E5=AD=98=E7=AC=94=E8=AE=B0=E6=9C=AC=E6=A0=B9?= =?UTF-8?q?=E4=B8=80=E7=BA=A7=E6=96=87=E6=A1=A3=E6=A0=91=20Fix=20https://g?= =?UTF-8?q?ithub.com/siyuan-note/siyuan/issues/6717?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/box.go | 4 ---- kernel/model/conf.go | 2 -- 2 files changed, 6 deletions(-) diff --git a/kernel/model/box.go b/kernel/model/box.go index 21aa5e7a1..e6fee5e2b 100644 --- a/kernel/model/box.go +++ b/kernel/model/box.go @@ -540,10 +540,6 @@ func FullReindex() { openedBox.Index(true) } IndexRefs() - // 缓存根一级的文档树展开 - for _, openedBox := range openedBoxes { - ListDocTree(openedBox.ID, "/", Conf.FileTree.Sort) - } treenode.SaveBlockTree() util.PushEndlessProgress(Conf.Language(58)) go func() { diff --git a/kernel/model/conf.go b/kernel/model/conf.go index 38ac242c0..ce42efa38 100644 --- a/kernel/model/conf.go +++ b/kernel/model/conf.go @@ -602,8 +602,6 @@ func InitBoxes() { if !initialized { box.Index(true) } - - ListDocTree(box.ID, "/", Conf.FileTree.Sort) // 缓存根一级的文档树展开 } if !initialized {