mirror of
https://github.com/qgis/QGIS.git
synced 2025-11-22 00:14:55 -05:00
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.
This commit is contained in:
parent
341add8cb9
commit
c64ce53425
@ -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'<a href="%d"><img src=":/images/themes/default/%s"></a>' % (tabIndex, icon))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user