Merge pull request #140 from firstlookmedia/136-gui-ocr

In GUI only use OCR if the OCR box is checked
This commit is contained in:
Micah Lee 2021-12-13 11:33:12 -08:00 committed by GitHub
commit 8044f22768
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -496,9 +496,12 @@ class ConvertThread(QtCore.QThread):
self.error = False
def run(self):
ocr_lang = self.global_common.ocr_languages[
self.global_common.settings.get("ocr_language")
]
if self.global_common.settings.get("ocr"):
ocr_lang = self.global_common.ocr_languages[
self.global_common.settings.get("ocr_language")
]
else:
ocr_lang = None
if convert(
self.common.input_filename,