mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-04-25 12:29:57 -05:00
🎨 OCR 未启用时不保存 ocr-texts.json https://github.com/siyuan-note/siyuan/issues/11171
This commit is contained in:
+3
-1
@@ -132,10 +132,12 @@ func SaveAssetsTexts() {
|
||||
}
|
||||
|
||||
func SetAssetText(asset, text string) {
|
||||
var oldText string
|
||||
assetsTextsLock.Lock()
|
||||
oldText = assetsTexts[asset]
|
||||
assetsTexts[asset] = text
|
||||
assetsTextsLock.Unlock()
|
||||
if "" != text {
|
||||
if oldText != text {
|
||||
assetsTextsChanged.Store(true)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user