Hide progress module if it's inactive
This commit is contained in:
parent
221ea0d22f
commit
f01179290b
1 changed files with 3 additions and 0 deletions
|
@ -29,6 +29,9 @@ class Module(core.module.Module):
|
|||
super().__init__(config, theme, core.widget.Widget(self.get_progress_text))
|
||||
self.__active = False
|
||||
|
||||
def hidden(self):
|
||||
return not self.__active
|
||||
|
||||
def get_progress_text(self, widget):
|
||||
if self.update_progress_info(widget):
|
||||
width = util.format.asint(self.parameter("barwidth", 8))
|
||||
|
|
Loading…
Reference in a new issue