From f01179290b7a62548c3439c103616e2c5c744253 Mon Sep 17 00:00:00 2001 From: Sam Tebbs Date: Fri, 13 May 2022 10:21:31 +0100 Subject: [PATCH] Hide progress module if it's inactive --- bumblebee_status/modules/contrib/progress.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bumblebee_status/modules/contrib/progress.py b/bumblebee_status/modules/contrib/progress.py index 7e148b3..9148acb 100644 --- a/bumblebee_status/modules/contrib/progress.py +++ b/bumblebee_status/modules/contrib/progress.py @@ -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))