mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
fix install thread
This commit is contained in:
parent
1aa91da358
commit
d5d3ec2f90
2 changed files with 3 additions and 3 deletions
|
|
@ -407,7 +407,8 @@ class InstallDialog(QtWidgets.QDialog):
|
|||
|
||||
install_thread.start()
|
||||
|
||||
def _installation_finished(self, status):
|
||||
def _installation_finished(self):
|
||||
status = self._install_thread.result()
|
||||
if status >= 0:
|
||||
self._update_progress(100)
|
||||
QtWidgets.QApplication.processEvents()
|
||||
|
|
|
|||
|
|
@ -30,7 +30,6 @@ class InstallThread(QThread):
|
|||
"""
|
||||
progress = Signal(int)
|
||||
message = Signal((str, bool))
|
||||
finished = Signal(int)
|
||||
|
||||
def __init__(self, parent=None,):
|
||||
self._mongo = None
|
||||
|
|
@ -47,7 +46,6 @@ class InstallThread(QThread):
|
|||
if self._result is not None:
|
||||
raise AssertionError("BUG: Result was set more than once!")
|
||||
self._result = value
|
||||
self.finished.emit(value)
|
||||
|
||||
def run(self):
|
||||
"""Thread entry point.
|
||||
|
|
@ -162,6 +160,7 @@ class InstallThread(QThread):
|
|||
|
||||
self.message.emit(f"Installed as {local_openpype}", False)
|
||||
self.progress.emit(100)
|
||||
self._set_result(1)
|
||||
return
|
||||
else:
|
||||
# if we have mongo connection string, validate it, set it to
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue