🎨 OCR no longer blocks document loading https://github.com/siyuan-note/siyuan/issues/9230

This commit is contained in:
Daniel 2023-12-07 20:40:16 +08:00
parent b31765d0ab
commit 283917a9a8
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
8 changed files with 123 additions and 11 deletions

View file

@ -51,6 +51,14 @@ func RemoveAsset(path string) {
delete(assetsCache, path)
}
func ExistAsset(path string) (ret bool) {
assetsLock.Lock()
defer assetsLock.Unlock()
_, ret = assetsCache[path]
return
}
func LoadAssets() {
defer logging.Recover()