update notification should be urgent

This commit is contained in:
Von Random 2017-01-13 11:22:08 +03:00
parent 47d9cf14dc
commit d921f17f1c

View file

@ -12,8 +12,10 @@ class PluginThread(plugins.PluginThreadCommon):
self.status['full_text'] = 'UPD: ' + str(count) self.status['full_text'] = 'UPD: ' + str(count)
if count > 0: if count > 0:
self.hide = False self.hide = False
self.status['urgent'] = True
else: else:
self.hide = True self.hide = True
self.status['urgent'] = False
def main(self): def main(self):
updates = subprocess.getoutput('/usr/bin/pacman -Sup').count("\n") updates = subprocess.getoutput('/usr/bin/pacman -Sup').count("\n")