mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-28 09:54:07 +01:00
🎨 改进移动文档路径过滤
This commit is contained in:
parent
1708fb091a
commit
538b0b36a9
2 changed files with 18 additions and 2 deletions
|
|
@ -1012,7 +1012,11 @@ func MoveDocs(fromPaths []string, toBoxID, toPath string) (err error) {
|
|||
return
|
||||
}
|
||||
|
||||
fromPaths = util.FilterSelfChildDocs(fromPaths)
|
||||
fromPaths = util.FilterMoveDocFromPaths(fromPaths, toPath)
|
||||
if 1 > len(fromPaths) {
|
||||
return
|
||||
}
|
||||
|
||||
pathsBoxes := getBoxesByPaths(fromPaths)
|
||||
|
||||
// 检查路径深度是否超过限制
|
||||
|
|
@ -1024,7 +1028,7 @@ func MoveDocs(fromPaths []string, toBoxID, toPath string) (err error) {
|
|||
}
|
||||
}
|
||||
|
||||
needShowProgress := 32 < len(fromPaths)
|
||||
needShowProgress := 16 < len(fromPaths)
|
||||
if needShowProgress {
|
||||
util.PushEndlessProgress(Conf.Language(116))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue