Skip to content

Commit

Permalink
Merge pull request #560 from ppvnf/patch-44
Browse files Browse the repository at this point in the history
panther7 suggestion + rename Available Updates to Software Updates
  • Loading branch information
marticliment authored Dec 30, 2022
2 parents 15378ae + 457d4c2 commit 53bdd64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wingetui/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def loadMainUI(self):
menu.addAction(self.discoverPackages)
menu.addSeparator()

self.updatePackages = QAction(_("Available Updates"), menu)
self.updatePackages = QAction(_("Software Updates"), menu)
globals.updatesAction = self.updatePackages
menu.addAction(self.updatePackages)

Expand Down
2 changes: 1 addition & 1 deletion wingetui/uiSections.py
Original file line number Diff line number Diff line change
Expand Up @@ -1085,7 +1085,7 @@ def updatePackageNumber(self, showQueried: bool = False, foundResults: int = 0):
self.availableUpdates += 1
self.countLabel.setText(_("Available updates: {0}").format(self.availableUpdates))
globals.trayIcon.setToolTip("WingetUI" if self.availableUpdates == 0 else (_("WingetUI - 1 update is available") if self.availableUpdates == 1 else _("WingetUI - {0} updates are available").format(self.availableUpdates)) )
globals.trayMenuUpdatesList.menuAction().setText("1 update was found" if self.availableUpdates == 1 else (_("No updates are available") if self.availableUpdates == 0 else _("{0} updates were found").format(self.availableUpdates)) )
globals.trayMenuUpdatesList.menuAction().setText(_("No updates are available" if self.availableUpdates == 0 else "Available updates: {0}").format(self.availableUpdates))
if self.availableUpdates > 0:
self.packageList.label.hide()
self.packageList.label.setText("")
Expand Down

0 comments on commit 53bdd64

Please sign in to comment.