Hide progress module if it's inactive

This commit is contained in:
Sam Tebbs 2022-05-13 10:21:31 +01:00
parent 221ea0d22f
commit f01179290b

View file

@ -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))