mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 OCR no longer blocks document loading https://github.com/siyuan-note/siyuan/issues/9230
This commit is contained in:
parent
1dc5a371f6
commit
aaf15c77e0
4 changed files with 25 additions and 7 deletions
|
|
@ -273,3 +273,14 @@ func getTesseractLangs() (ret []string) {
|
|||
}
|
||||
return
|
||||
}
|
||||
|
||||
var (
|
||||
NodeOCRQueue []string
|
||||
NodeOCRQueueLock = sync.Mutex{}
|
||||
)
|
||||
|
||||
func PushNodeOCRQueue(id string) {
|
||||
NodeOCRQueueLock.Lock()
|
||||
defer NodeOCRQueueLock.Unlock()
|
||||
NodeOCRQueue = append(NodeOCRQueue, id)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue