|
@@ -157,9 +157,13 @@ class KMResourceDownloadManager: NSObject {
|
|
|
if urlString.count != 0 {
|
|
|
try?FileManager.default.removeItem(atPath: kLocalFilePath)
|
|
|
|
|
|
- complete(false)
|
|
|
+ DispatchQueue.main.async {
|
|
|
+ complete(false)
|
|
|
+ }
|
|
|
} else {
|
|
|
- complete(true)
|
|
|
+ DispatchQueue.main.async {
|
|
|
+ complete(true)
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -194,6 +198,7 @@ extension KMResourceDownloadManager {
|
|
|
if result {
|
|
|
|
|
|
} else {
|
|
|
+
|
|
|
let alert = NSAlert()
|
|
|
alert.alertStyle = .critical
|
|
|
alert.messageText = KMLocalizedString("Need DownLoad OCR Resource", comment: "")
|
|
@@ -266,8 +271,13 @@ extension KMResourceDownloadManager: XMLParserDelegate {
|
|
|
// <resourceURL>https://www.pdfreaderpro.com/downloads/DocumentAI.bundle.1.0.0.zip</resourceURL>
|
|
|
// </resource>
|
|
|
// <resource>
|
|
|
-// <maxVersion>4.6.3</maxVersion>
|
|
|
-// <minVersion>1.4.0</minVersion>
|
|
|
+// <maxVersion>1.4.0</maxVersion>
|
|
|
+// <minVersion>1.3.0</minVersion>
|
|
|
+// <resourceURL>https://www.pdfreaderpro.com/downloads/DocumentAI.bundle.1.2.0.zip</resourceURL>
|
|
|
+// </resource>
|
|
|
+// <resource>
|
|
|
+// <maxVersion>1.5.1</maxVersion>
|
|
|
+// <minVersion>1.4.1</minVersion>
|
|
|
// <resourceURL>https://www.pdfreaderpro.com/downloads/DocumentAI.bundle.2.0.0.zip</resourceURL>
|
|
|
// </resource>
|
|
|
// </resources>
|