mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-20 14:04:06 +01:00
🎨 文档滚动状态不产生同步冲突 Fix https://github.com/siyuan-note/siyuan/issues/6076
This commit is contained in:
parent
2dcd27119d
commit
166fdc7e1b
6 changed files with 104 additions and 39 deletions
|
|
@ -123,9 +123,17 @@ func SetBlockAttrs(id string, nameValues map[string]string) (err error) {
|
|||
}
|
||||
}
|
||||
|
||||
if err = indexWriteJSONQueue(tree); nil != err {
|
||||
return
|
||||
if 1 == len(nameValues) && "" != nameValues["scroll"] {
|
||||
// 文档滚动状态不产生同步冲突 https://github.com/siyuan-note/siyuan/issues/6076
|
||||
if err = indexWriteJSONQueueWithoutChangeTime(tree); nil != err {
|
||||
return
|
||||
}
|
||||
} else {
|
||||
if err = indexWriteJSONQueue(tree); nil != err {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
IncSync()
|
||||
cache.PutBlockIAL(id, parse.IAL2Map(node.KramdownIAL))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue