mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Automatic refresh of document tree information https://github.com/siyuan-note/siyuan/issues/11043
This commit is contained in:
parent
3fde9bb690
commit
d35386d79d
6 changed files with 63 additions and 9 deletions
|
|
@ -254,6 +254,10 @@ func PushSaveDoc(rootID, typ string, sources interface{}) {
|
|||
PushEvent(evt)
|
||||
}
|
||||
|
||||
func PushReloadDocInfo(docInfo map[string]any) {
|
||||
BroadcastByType("main", "reloadDocInfo", 0, "", docInfo)
|
||||
}
|
||||
|
||||
func PushReloadProtyle(rootID string) {
|
||||
BroadcastByType("protyle", "reload", 0, "", rootID)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue