mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
🎨 Improve data sync to avoid conflicts caused by folding block https://github.com/siyuan-note/siyuan/issues/15329#issuecomment-3152964043
This commit is contained in:
parent
34e3dfe479
commit
5690081332
1 changed files with 5 additions and 0 deletions
|
@ -1526,8 +1526,13 @@ func processSyncMergeResult(exit, byHand bool, mergeResult *dejavu.MergeResult,
|
|||
tree.Box = boxID
|
||||
tree.Path = strings.TrimPrefix(file.Path, "/"+boxID)
|
||||
|
||||
previousPath := tree.Path
|
||||
resetTree(tree, "Conflicted", true)
|
||||
createTreeTx(tree)
|
||||
box := Conf.Box(boxID)
|
||||
if nil != box {
|
||||
box.addSort(previousPath, tree.ID)
|
||||
}
|
||||
}
|
||||
|
||||
needReloadFiletree = true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue