From 53bcf771063f9f697f2747cec66bc39498d0603e Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Mon, 20 Apr 2026 22:00:05 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/17555#issuecomment-4280872035 Signed-off-by: Daniel <845765@qq.com> --- kernel/model/assets.go | 2 +- kernel/util/websocket.go | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/kernel/model/assets.go b/kernel/model/assets.go index 74c655c0f..f29de00a4 100644 --- a/kernel/model/assets.go +++ b/kernel/model/assets.go @@ -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 } diff --git a/kernel/util/websocket.go b/kernel/util/websocket.go index 816ff2862..51b49dcde 100644 --- a/kernel/util/websocket.go +++ b/kernel/util/websocket.go @@ -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}) }