mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
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:
commit
8044f22768
1 changed files with 6 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue