From c64ce534252b66731fab1d29d22db0e28053dac3 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Fri, 9 Sep 2022 08:35:04 +1000 Subject: [PATCH] Don't show any status bar messages for new plugins We have so many plugins, and the vast majority aren't relevant to the majority of users... it's just noise to advise when a new plugin is released. --- python/pyplugin_installer/installer.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/python/pyplugin_installer/installer.py b/python/pyplugin_installer/installer.py index 599e8455d50..cfc07c2d64b 100644 --- a/python/pyplugin_installer/installer.py +++ b/python/pyplugin_installer/installer.py @@ -142,7 +142,7 @@ class QgsPluginInstaller(QObject): # ----------------------------------------- # def checkingDone(self): - """ Remove the "Looking for new plugins..." label and display a notification instead if any updates or news available """ + """ Remove the "Looking for new plugins..." label and display a notification instead if any updates available """ if not self.statusLabel: # only proceed if the label is present return @@ -152,18 +152,13 @@ class QgsPluginInstaller(QObject): plugins.markNews() status = "" icon = "" - # first check for news - for key in plugins.all(): - if plugins.all()[key]["status"] == "new": - status = self.tr("There is a new plugin available") - icon = "pluginNew.svg" - tabIndex = 4 # PLUGMAN_TAB_NEW # then check for updates (and eventually overwrite status) for key in plugins.all(): if plugins.all()[key]["status"] == "upgradeable": status = self.tr("There is a plugin update available") icon = "pluginUpgrade.svg" tabIndex = 3 # PLUGMAN_TAB_UPGRADEABLE + # finally set the notify label if status: self.statusLabel.setText(u'' % (tabIndex, icon))