1
0
Fork 0
mirror of synced 2024-06-23 08:40:45 +12:00

Ensure the result signal has been connected

This commit is contained in:
Stelios Tsampas 2021-05-26 09:37:55 +03:00
parent 5b2cc055ff
commit 9a307856f6
3 changed files with 3 additions and 0 deletions

View file

@ -94,6 +94,7 @@ class InstallDialog(QDialog, Ui_InstallDialog):
self.resize(self.minimumSize())
self.setFixedSize(self.size())
def execute(self):
if self.silent:
self.reject_close = False
self.get_download_info()

View file

@ -100,6 +100,7 @@ class TabWidget(QTabWidget):
InstallQueueItemModel(options=InstallOptionsModel(app_name=app_name)),
update=disable_path, parent=self)
install_dialog.result_ready.connect(self.on_install_dialog_closed)
install_dialog.execute()
def on_install_dialog_closed(self, download_item: InstallQueueItemModel):
if download_item:

View file

@ -197,6 +197,7 @@ class DownloadTab(QWidget):
InstallQueueItemModel(options=InstallOptionsModel(app_name=app_name)),
update=True, silent=auto, parent=self)
install_dialog.result_ready.connect(self.on_install_dialog_closed)
install_dialog.execute()
def on_install_dialog_closed(self, download_item: InstallQueueItemModel):
if download_item: