In GUI only use OCR if the OCR box is checked

This commit is contained in:
Micah Lee 2021-12-13 11:32:41 -08:00
parent 1f16433b9a
commit d90097e7af
No known key found for this signature in database
GPG key ID: 403C2657CD994F73

View file

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