|
@@ -100,10 +100,6 @@ class KMOCRPageView: BaseXibView {
|
|
|
override func setup() {
|
|
|
self.updateUI()
|
|
|
self.reloadData()
|
|
|
-
|
|
|
-#if VERSION_DMG
|
|
|
- KMResourceDownloadManager.manager.downLoadOCRResource(window: self.window ?? NSWindow.currentWindow())
|
|
|
-#endif
|
|
|
}
|
|
|
|
|
|
func updateUI() {
|
|
@@ -269,6 +265,12 @@ extension KMOCRPageView {
|
|
|
} else if sender == correctionSwitch {
|
|
|
model.imageCorrection = sender.properties.open
|
|
|
}
|
|
|
+
|
|
|
+ if model.imageEnhancement || model.imageCorrection {
|
|
|
+#if VERSION_DMG
|
|
|
+ KMResourceDownloadManager.manager.downLoadOCRResource(window: self.window ?? NSWindow.currentWindow())
|
|
|
+#endif
|
|
|
+ }
|
|
|
// self.reloadData()
|
|
|
guard let callBack = changeAction else { return }
|
|
|
|