mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
🎨 OCR no longer blocks document loading https://github.com/siyuan-note/siyuan/issues/9230
This commit is contained in:
parent
b31765d0ab
commit
283917a9a8
8 changed files with 123 additions and 11 deletions
8
kernel/cache/asset.go
vendored
8
kernel/cache/asset.go
vendored
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue