mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-05-04 12:41:50 +02:00
Merge pull request #2 from deeplow/qt6-finished-removed
Remove unneeded "finished" signal in QThread
This commit is contained in:
commit
5af3d7396e
1 changed files with 2 additions and 4 deletions
|
@ -486,7 +486,6 @@ class SettingsWidget(QtWidgets.QWidget):
|
||||||
|
|
||||||
|
|
||||||
class ConvertThread(QtCore.QThread):
|
class ConvertThread(QtCore.QThread):
|
||||||
is_finished = QtCore.Signal(bool)
|
|
||||||
update = QtCore.Signal(bool, str, int)
|
update = QtCore.Signal(bool, str, int)
|
||||||
|
|
||||||
def __init__(self, global_common, common):
|
def __init__(self, global_common, common):
|
||||||
|
@ -503,13 +502,12 @@ class ConvertThread(QtCore.QThread):
|
||||||
else:
|
else:
|
||||||
ocr_lang = None
|
ocr_lang = None
|
||||||
|
|
||||||
if convert(
|
convert(
|
||||||
self.common.input_filename,
|
self.common.input_filename,
|
||||||
self.common.output_filename,
|
self.common.output_filename,
|
||||||
ocr_lang,
|
ocr_lang,
|
||||||
self.stdout_callback,
|
self.stdout_callback,
|
||||||
):
|
)
|
||||||
self.is_finished.emit(self.error)
|
|
||||||
|
|
||||||
def stdout_callback(self, line):
|
def stdout_callback(self, line):
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue