mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 Improve dynamic anchor text auto-refresh stability https://github.com/siyuan-note/siyuan/issues/8234
This commit is contained in:
parent
7879c7a72a
commit
57f95b1d59
1 changed files with 2 additions and 2 deletions
|
|
@ -259,11 +259,11 @@ func PushProtyleReload(rootID string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func PushSetRefDynamicText(rootID, blockID, defBlockID, refText string) {
|
func PushSetRefDynamicText(rootID, blockID, defBlockID, refText string) {
|
||||||
BroadcastByType("protyle", "setRefDynamicText", 0, "", map[string]interface{}{"rootID": rootID, "blockID": blockID, "defBlockID": defBlockID, "refText": refText})
|
BroadcastByType("main", "setRefDynamicText", 0, "", map[string]interface{}{"rootID": rootID, "blockID": blockID, "defBlockID": defBlockID, "refText": refText})
|
||||||
}
|
}
|
||||||
|
|
||||||
func PushSetDefRefCount(rootID, blockID string, refCount int) {
|
func PushSetDefRefCount(rootID, blockID string, refCount int) {
|
||||||
BroadcastByType("protyle", "setDefRefCount", 0, "", map[string]interface{}{"rootID": rootID, "blockID": blockID, "refCount": refCount})
|
BroadcastByType("main", "setDefRefCount", 0, "", map[string]interface{}{"rootID": rootID, "blockID": blockID, "refCount": refCount})
|
||||||
}
|
}
|
||||||
|
|
||||||
func PushProtyleLoading(rootID, msg string) {
|
func PushProtyleLoading(rootID, msg string) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue