Ensure the result signal has been connected
This commit is contained in:
parent
5b2cc055ff
commit
9a307856f6
3 changed files with 3 additions and 0 deletions
|
@ -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()
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue