[modules/arch-update] add format parameter
This commit is contained in:
parent
5f3530d258
commit
01c2bb6cbc
1 changed files with 6 additions and 2 deletions
|
@ -29,8 +29,12 @@ class Module(bumblebee.engine.Module):
|
|||
return len(packages)
|
||||
return 0
|
||||
|
||||
@property
|
||||
def _format(self):
|
||||
return self.parameter("format", "Update Arch: {}")
|
||||
|
||||
def utilization(self, widget):
|
||||
return 'Update Arch: {}'.format(self.packages)
|
||||
return self._format.format(self.packages)
|
||||
|
||||
def hidden(self):
|
||||
return self.check_updates() == 0
|
||||
|
|
Loading…
Reference in a new issue