mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 Reset doc browsing position after data snapshot rollback https://github.com/siyuan-note/siyuan/issues/8231
This commit is contained in:
@@ -121,15 +121,11 @@ func ClosePushChan(id string) {
|
||||
}
|
||||
|
||||
func ReloadUIResetScroll() {
|
||||
evt := NewCmdResult("reloadui", 0, PushModeBroadcast)
|
||||
evt.Data = map[string]interface{}{"resetScroll": true}
|
||||
PushEvent(evt)
|
||||
BroadcastByType("main", "reloadui", 0, "", map[string]interface{}{"resetScroll": true})
|
||||
}
|
||||
|
||||
func ReloadUI() {
|
||||
evt := NewCmdResult("reloadui", 0, PushModeBroadcast)
|
||||
evt.Data = map[string]interface{}{"dropCurrentLayout": false}
|
||||
PushEvent(evt)
|
||||
BroadcastByType("main", "reloadui", 0, "", nil)
|
||||
}
|
||||
|
||||
func PushTxErr(msg string, code int, data interface{}) {
|
||||
|
||||
Reference in New Issue
Block a user