mirror of
https://github.com/siyuan-note/siyuan
synced 2026-04-21 13:37:52 +00:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
5cedae40ba
commit
53bcf77106
2 changed files with 1 additions and 5 deletions
|
|
@ -246,7 +246,7 @@ func NetAssets2LocalAssets(rootID string, onlyImg bool, originalURL string) (err
|
|||
err = netAssets2LocalAssets0(tree, onlyImg, originalURL, assetsDirPath, true)
|
||||
go func() {
|
||||
time.Sleep(128 * time.Microsecond)
|
||||
util.PushIsSyncing(rootID, false)
|
||||
util.PushReloadProtyle(rootID)
|
||||
}()
|
||||
return
|
||||
}
|
||||
|
|
|
|||
|
|
@ -351,10 +351,6 @@ func PushReloadProtyle(rootID string) {
|
|||
BroadcastByType("protyle", "reload", 0, "", rootID)
|
||||
}
|
||||
|
||||
func PushIsSyncing(rootID string, isSyncing bool) {
|
||||
BroadcastByType("protyle", "isSyncing", 0, "", map[string]any{"rootID": rootID, "isSyncing": isSyncing})
|
||||
}
|
||||
|
||||
func PushSetRefDynamicText(rootID, blockID, defBlockID, refText string) {
|
||||
BroadcastByType("main", "setRefDynamicText", 0, "", map[string]any{"rootID": rootID, "blockID": blockID, "defBlockID": defBlockID, "refText": refText})
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue