Skip to content

Commit

Permalink
Do not show progress dialog for lock file download
Browse files Browse the repository at this point in the history
  • Loading branch information
mrclary committed May 9, 2024
1 parent 031df4e commit bb8a69b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions spyder/plugins/updatemanager/widgets/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,19 +322,21 @@ 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
)

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(
Expand Down

0 comments on commit bb8a69b

Please sign in to comment.