🎨 Improve assets rename https://github.com/siyuan-note/siyuan/issues/12497
This commit is contained in:
parent
ba9f41aa35
commit
37647191c6
1 changed files with 0 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue