Skip to content

Commit

Permalink
🎨 Improve assets rename #12497
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Oct 30, 2024
1 parent ba9f41a commit 3764719
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion kernel/model/assets.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 3764719

Please sign in to comment.