🎨 Automatic refresh of document tree information https://github.com/siyuan-note/siyuan/issues/11043

This commit is contained in:
Daniel 2024-09-28 17:38:50 +08:00
parent 3fde9bb690
commit d35386d79d
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
6 changed files with 63 additions and 9 deletions

View file

@ -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)
}