From 27951d45ec3f992aa81d6bccbcf6820fa6e8dde0 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Thu, 3 Nov 2022 14:54:06 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=96=87=E6=A1=A3=E6=A0=91=E6=94=AF?= =?UTF-8?q?=E6=8C=81=20`Ctrl+Click`=20=E5=92=8C=20`Shift+=E2=86=91/?= =?UTF-8?q?=E2=86=93`=20=E8=BF=9B=E8=A1=8C=E5=A4=9A=E9=80=89=20https://git?= =?UTF-8?q?hub.com/siyuan-note/siyuan/issues/1359?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/file.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/kernel/model/file.go b/kernel/model/file.go index ca7554fab..e6b48d09f 100644 --- a/kernel/model/file.go +++ b/kernel/model/file.go @@ -1218,12 +1218,7 @@ func RemoveDocs(paths []string) (err error) { util.PushEndlessProgress(Conf.Language(116)) paths = filterSelfChildDocs(paths) - var ids []string - for _, p := range paths { - ids = append(ids, strings.TrimSuffix(path.Base(p), ".sy")) - } - - pathsBoxes := getBoxesByPaths(ids) + pathsBoxes := getBoxesByPaths(paths) WaitForWritingFiles() for p, box := range pathsBoxes { err = removeDoc(box, p)