This commit is contained in:
Daniel 2024-10-31 00:13:47 +08:00
parent ba9f41aa35
commit 37647191c6
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

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