mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-16 20:18:06 +01:00
🐛 Fix ocr crash
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
11d4d98d35
commit
00a3084d3e
1 changed files with 6 additions and 0 deletions
|
|
@ -92,6 +92,9 @@ func HandleAssetsRemoveEvent(assetAbsPath string) {
|
|||
if filelock.IsHidden(assetAbsPath) {
|
||||
return
|
||||
}
|
||||
if strings.HasSuffix(assetAbsPath, ".tmp") {
|
||||
return
|
||||
}
|
||||
|
||||
removeIndexAssetContent(assetAbsPath)
|
||||
removeAssetThumbnail(assetAbsPath)
|
||||
|
|
@ -114,6 +117,9 @@ func HandleAssetsChangeEvent(assetAbsPath string) {
|
|||
if filelock.IsHidden(assetAbsPath) {
|
||||
return
|
||||
}
|
||||
if strings.HasSuffix(assetAbsPath, ".tmp") {
|
||||
return
|
||||
}
|
||||
|
||||
indexAssetContent(assetAbsPath)
|
||||
removeAssetThumbnail(assetAbsPath)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue