From bb8a69b8a2be3273b3d88557a6ac730973d5e4b8 Mon Sep 17 00:00:00 2001 From: Ryan Clary <9618975+mrclary@users.noreply.github.com> Date: Mon, 6 May 2024 18:17:55 -0700 Subject: [PATCH] Do not show progress dialog for lock file download --- spyder/plugins/updatemanager/widgets/update.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/spyder/plugins/updatemanager/widgets/update.py b/spyder/plugins/updatemanager/widgets/update.py index f968bb04a62..e0565c15b74 100644 --- a/spyder/plugins/updatemanager/widgets/update.py +++ b/spyder/plugins/updatemanager/widgets/update.py @@ -322,6 +322,8 @@ def _start_download(self): and set downloading status. """ self.cancelled = False + self.progress_dialog = None + self.download_worker = WorkerDownloadInstaller( self.latest_release, self.installer_path, self.installer_size_path ) @@ -329,12 +331,12 @@ def _start_download(self): self.sig_disable_actions.emit(True) self.set_status(DOWNLOADING_INSTALLER) - self.progress_dialog = ProgressDialog( - self, - _("Downloading update for Spyder {} ...").format( - self.latest_release) - ) - self.progress_dialog.cancel.clicked.connect(self._cancel_download) + # Only show progress bar for installers + if not self.installer_path.endswith('lock'): + self.progress_dialog = ProgressDialog( + self, _("Downloading Spyder {} ...").format(self.latest_release) + ) + self.progress_dialog.cancel.clicked.connect(self._cancel_download) self.download_thread = QThread(None) self.download_worker.sig_exception_occurred.connect(