mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-25 08:24:06 +01:00
♻️ Extract method util.GetTreeID
This commit is contained in:
parent
c295a496d7
commit
6f7e106be4
11 changed files with 26 additions and 27 deletions
|
|
@ -394,7 +394,7 @@ func Heading2Doc(srcHeadingID, targetBoxID, targetPath, previousPath string) (sr
|
|||
newTree.Root.SetIALAttr("updated", util.CurrentTimeSecondsStr())
|
||||
newTree.Root.Spec = "1"
|
||||
if "" != previousPath {
|
||||
box.addSort(strings.TrimSuffix(path.Base(previousPath), ".sy"), newTree.ID)
|
||||
box.addSort(util.GetTreeID(previousPath), newTree.ID)
|
||||
} else {
|
||||
box.addMinSort(path.Dir(newTargetPath), newTree.ID)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue