mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-29 02:12:36 +02:00
resolve naming conflict: QWidget.update()
QWidget.update() is already a built-in Qt method [1]. This method was unintentionally being overriden. Renamed it to update_progress to fix it. [1]: https://doc.qt.io/qtforpython-5/PySide2/QtWidgets/QWidget.html#PySide2.QtWidgets.PySide2.QtWidgets.QWidget.update
This commit is contained in:
parent
75ce244195
commit
e0b3c5b599
1 changed files with 2 additions and 2 deletions
|
@ -607,11 +607,11 @@ class ConvertWidget(QtWidgets.QWidget):
|
|||
|
||||
def start(self) -> None:
|
||||
self.convert_t = ConvertThread(self.global_common, self.common)
|
||||
self.convert_t.update.connect(self.update)
|
||||
self.convert_t.update.connect(self.update_progress)
|
||||
self.convert_t.finished.connect(self.all_done)
|
||||
self.convert_t.start()
|
||||
|
||||
def update(self, error: bool, text: str, percentage: int) -> None:
|
||||
def update_progress(self, error: bool, text: str, percentage: int) -> None:
|
||||
if error:
|
||||
self.error = True
|
||||
self.error_image.show()
|
||||
|
|
Loading…
Reference in a new issue