Merge pull request #875 from SamTebbs33/main
Hide progress module if it's inactive
This commit is contained in:
commit
2e8495d5ff
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