mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 15:10:12 +01:00
🎨 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 {
|
if ocrText := util.GetAssetText(oldPath); "" != ocrText {
|
||||||
// 图片重命名后 ocr-texts.json 需要更新 https://github.com/siyuan-note/siyuan/issues/12974
|
// 图片重命名后 ocr-texts.json 需要更新 https://github.com/siyuan-note/siyuan/issues/12974
|
||||||
util.SetAssetText(newPath, ocrText)
|
util.SetAssetText(newPath, ocrText)
|
||||||
util.RemoveAssetText(oldPath)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
IncSync()
|
IncSync()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue