🎨 Supports via environment var SIYUAN_TESSERACT_ENABLED=false to close OCR Fix https://github.com/siyuan-note/siyuan/issues/9619

This commit is contained in:
Daniel 2023-11-10 11:23:27 +08:00
parent efec2c749e
commit 524776c005
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 6 additions and 3 deletions

View file

@ -69,7 +69,9 @@ func GetAssetText(asset string, force bool) string {
AssetsTextsLock.Lock()
AssetsTexts[asset] = ret
AssetsTextsLock.Unlock()
AssetsTextsChanged = true
if "" != ret {
AssetsTextsChanged = true
}
return ret
}