mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-29 02:12:36 +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
|
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,
|
||||||
|
|
Loading…
Reference in a new issue