[modules/arch-update] Fix missing check_updates()
refactoring broke the arch-update module - fix it. fixes #610
This commit is contained in:
parent
289a4bad41
commit
650942a3e3
1 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ class Module(core.module.Module):
|
||||||
@core.decorators.every(minutes=60)
|
@core.decorators.every(minutes=60)
|
||||||
def __init__(self, config, theme):
|
def __init__(self, config, theme):
|
||||||
super().__init__(config, theme, core.widget.Widget(self.utilization))
|
super().__init__(config, theme, core.widget.Widget(self.utilization))
|
||||||
self.__packages = None
|
self.__packages = 0
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def __format(self):
|
def __format(self):
|
||||||
|
@ -24,7 +24,7 @@ class Module(core.module.Module):
|
||||||
return self.__format.format(self.__packages)
|
return self.__format.format(self.__packages)
|
||||||
|
|
||||||
def hidden(self):
|
def hidden(self):
|
||||||
return self.check_updates() == 0
|
return self.__packages == 0
|
||||||
|
|
||||||
def update(self):
|
def update(self):
|
||||||
result = util.cli.execute('checkupdates')
|
result = util.cli.execute('checkupdates')
|
||||||
|
|
Loading…
Reference in a new issue