From 650942a3e335dad4a69f6c973d704cc802073494 Mon Sep 17 00:00:00 2001 From: Tobias Witek Date: Thu, 30 Apr 2020 21:13:41 +0200 Subject: [PATCH] [modules/arch-update] Fix missing check_updates() refactoring broke the arch-update module - fix it. fixes #610 --- modules/contrib/arch-update.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/contrib/arch-update.py b/modules/contrib/arch-update.py index f4a910f..f833af6 100644 --- a/modules/contrib/arch-update.py +++ b/modules/contrib/arch-update.py @@ -14,7 +14,7 @@ class Module(core.module.Module): @core.decorators.every(minutes=60) def __init__(self, config, theme): super().__init__(config, theme, core.widget.Widget(self.utilization)) - self.__packages = None + self.__packages = 0 @property def __format(self): @@ -24,7 +24,7 @@ class Module(core.module.Module): return self.__format.format(self.__packages) def hidden(self): - return self.check_updates() == 0 + return self.__packages == 0 def update(self): result = util.cli.execute('checkupdates')