Skip to content

Commit

Permalink
Do not show statusbar widget while checking for updates. The spinner …
Browse files Browse the repository at this point in the history
…is no longer needed either.
  • Loading branch information
mrclary committed Feb 29, 2024
1 parent 8d406c2 commit 75d8c13
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions spyder/plugins/updatemanager/widgets/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class UpdateManagerStatus(StatusBarWidget):
def __init__(self, parent):

self.tooltip = None
super().__init__(parent, show_spinner=True)
super().__init__(parent)

# Check for updates action menu
self.menu = SpyderMenu(self)
Expand All @@ -78,29 +78,20 @@ def set_value(self, value):
"Downloading the update will continue in the background.\n"
"Click here to show the download dialog again."
)
self.spinner.hide()
self.spinner.stop()
self.custom_widget.show()
self.show()
elif value == CHECKING:
self.tooltip = value
self.custom_widget.hide()
self.spinner.show()
self.spinner.start()
self.show()
self.hide()
elif value == PENDING:
self.tooltip = value
self.custom_widget.hide()
self.spinner.hide()
self.spinner.stop()
self.show()
else:
self.tooltip = None
if self.custom_widget:
self.custom_widget.hide()
if self.spinner:
self.spinner.hide()
self.spinner.stop()
self.hide()

self.update_tooltip()
Expand Down

0 comments on commit 75d8c13

Please sign in to comment.