Skip to content

Commit

Permalink
Remove "Check for updates..." widget action.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrclary committed Feb 27, 2024
1 parent 0753579 commit ec60b69
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions spyder/plugins/updatemanager/widgets/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@

# Standard library imports
import logging
import os

# Third party imports
from qtpy.QtCore import QPoint, Qt, Signal, Slot
from qtpy.QtCore import Qt, Signal, Slot
from qtpy.QtWidgets import QLabel

# Local imports
Expand All @@ -29,7 +28,6 @@
PENDING
)
from spyder.utils.icon_manager import ima
from spyder.utils.qthelpers import add_actions, create_action


# Setup logger
Expand Down Expand Up @@ -131,18 +129,3 @@ def show_dialog_or_menu(self):
self.sig_show_progress_dialog.emit(True)
elif self.value in (PENDING, DOWNLOAD_FINISHED, INSTALL_ON_CLOSE):
self.sig_start_update.emit()
elif self.value == NO_STATUS:
self.menu.clear()
check_for_updates_action = create_action(
self,
text=_("Check for updates..."),
triggered=self.sig_check_update.emit
)

add_actions(self.menu, [check_for_updates_action])
rect = self.contentsRect()
os_height = 7 if os.name == 'nt' else 12
pos = self.mapToGlobal(
rect.topLeft() + QPoint(-10, -rect.height() - os_height)
)
self.menu.popup(pos)

0 comments on commit ec60b69

Please sign in to comment.