From 37647191c68fc6e878df04aaff7d58cec8b63701 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Thu, 31 Oct 2024 00:13:47 +0800 Subject: [PATCH] :art: Improve assets rename https://github.com/siyuan-note/siyuan/issues/12497 --- kernel/model/assets.go | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/model/assets.go b/kernel/model/assets.go index e69fb7c8c23..e21046a33c0 100644 --- a/kernel/model/assets.go +++ b/kernel/model/assets.go @@ -697,7 +697,6 @@ func RenameAsset(oldPath, newName string) (newPath string, err error) { if ocrText := util.GetAssetText(oldPath); "" != ocrText { // 图片重命名后 ocr-texts.json 需要更新 https://github.com/siyuan-note/siyuan/issues/12974 util.SetAssetText(newPath, ocrText) - util.RemoveAssetText(oldPath) } IncSync()