mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 15:10:12 +01:00
🎨 Improve rollback doc
This commit is contained in:
parent
f18be1d084
commit
bea9641d28
1 changed files with 6 additions and 5 deletions
|
|
@ -288,6 +288,12 @@ func RollbackDocHistory(boxID, historyPath string) (err error) {
|
||||||
util.PushMsg(Conf.Language(102), 3000)
|
util.PushMsg(Conf.Language(102), 3000)
|
||||||
|
|
||||||
IncSync()
|
IncSync()
|
||||||
|
|
||||||
|
// 刷新属性视图
|
||||||
|
for _, avID := range avIDs {
|
||||||
|
ReloadAttrView(avID)
|
||||||
|
}
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
sql.WaitForWritingDatabase()
|
sql.WaitForWritingDatabase()
|
||||||
|
|
||||||
|
|
@ -310,11 +316,6 @@ func RollbackDocHistory(boxID, historyPath string) (err error) {
|
||||||
"refText": refText,
|
"refText": refText,
|
||||||
}
|
}
|
||||||
util.PushEvent(evt)
|
util.PushEvent(evt)
|
||||||
|
|
||||||
// 刷新属性视图
|
|
||||||
for _, avID := range avIDs {
|
|
||||||
ReloadAttrView(avID)
|
|
||||||
}
|
|
||||||
}()
|
}()
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue