File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
python/pyplugin_installer Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -150,19 +150,23 @@ def checkingDone(self):
150
150
# look for news in the repositories
151
151
plugins .markNews ()
152
152
status = ""
153
+ icon = ""
153
154
# first check for news
154
155
for key in plugins .all ():
155
156
if plugins .all ()[key ]["status" ] == "new" :
156
157
status = self .tr ("There is a new plugin available" )
158
+ icon = "plugin-new.svg"
157
159
tabIndex = 4 # PLUGMAN_TAB_NEW
158
160
# then check for updates (and eventually overwrite status)
159
161
for key in plugins .all ():
160
162
if plugins .all ()[key ]["status" ] == "upgradeable" :
161
163
status = self .tr ("There is a plugin update available" )
164
+ icon = "plugin-upgrade.svg"
162
165
tabIndex = 3 # PLUGMAN_TAB_UPGRADEABLE
163
166
# finally set the notify label
164
167
if status :
165
- self .statusLabel .setText (u' <a href="%d">%s</a> ' % (tabIndex , status ))
168
+ self .statusLabel .setText (u'<a href="%d"><img src="qrc:/images/themes/default/propertyicons/%s"></a>' % (tabIndex , icon ))
169
+ self .statusLabel .setToolTip (status )
166
170
else :
167
171
iface .mainWindow ().statusBar ().removeWidget (self .statusLabel )
168
172
self .statusLabel = None
You can’t perform that action at this time.
0 commit comments