Skip to content

Commit

Permalink
Merge pull request #536 from ppvnf/patch-41
Browse files Browse the repository at this point in the history
No updates are available if self.availableUpdates == 0 (systray conte…
  • Loading branch information
marticliment authored Dec 28, 2022
2 parents a09ff23 + 4aa210b commit 307242e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wingetui/uiSections.py
Original file line number Diff line number Diff line change
Expand Up @@ -1084,7 +1084,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(_("{0} updates were found" if self.availableUpdates!=1 else "{0} update was found").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)) )
if self.availableUpdates > 0:
self.packageList.label.hide()
self.packageList.label.setText("")
Expand Down

0 comments on commit 307242e

Please sign in to comment.