mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 生成重复/冲突文档时移除 scroll 浏览位置属性 Fix https://github.com/siyuan-note/siyuan/issues/6016
This commit is contained in:
parent
e2211630d4
commit
268f83cf9e
1 changed files with 1 additions and 0 deletions
|
|
@ -45,6 +45,7 @@ func resetTree(tree *parse.Tree, titleSuffix string) {
|
|||
titleSuffix = "(" + titleSuffix + ")"
|
||||
tree.Root.SetIALAttr("id", tree.ID)
|
||||
tree.Root.SetIALAttr("title", tree.Root.IALAttr("title")+" "+titleSuffix)
|
||||
tree.Root.RemoveIALAttr("scroll")
|
||||
p := path.Join(path.Dir(tree.Path), tree.ID) + ".sy"
|
||||
tree.Path = p
|
||||
tree.HPath = tree.HPath + " " + titleSuffix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue