mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🐛 Failed to rename the document after moving it https://github.com/siyuan-note/siyuan/issues/11661
This commit is contained in:
parent
0de9ecb61b
commit
1b7be9b6f0
2 changed files with 25 additions and 5 deletions
|
|
@ -404,12 +404,9 @@ func moveTree(tree *parse.Tree) {
|
|||
|
||||
func (box *Box) renameSubTrees(tree *parse.Tree) {
|
||||
subFiles := box.ListFiles(tree.Path)
|
||||
box.moveTrees0(subFiles)
|
||||
}
|
||||
|
||||
func (box *Box) moveTrees0(files []*FileInfo) {
|
||||
luteEngine := util.NewLute()
|
||||
for _, subFile := range files {
|
||||
for _, subFile := range subFiles {
|
||||
if !strings.HasSuffix(subFile.path, ".sy") {
|
||||
continue
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue