From 5ad211f86206181ee8b6284d195185065b55916b Mon Sep 17 00:00:00 2001 From: tobi-wan-kenobi Date: Sat, 6 Nov 2021 08:17:18 +0100 Subject: [PATCH] Revert "[contrib/progress] allow hiding of inactive state" This reverts commit cbd989309d39db1c35c56b3c7884dc3c42a3f679. --- bumblebee_status/core/output.py | 2 +- bumblebee_status/modules/contrib/progress.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bumblebee_status/core/output.py b/bumblebee_status/core/output.py index cf79f2f..121df27 100644 --- a/bumblebee_status/core/output.py +++ b/bumblebee_status/core/output.py @@ -229,7 +229,7 @@ class i3(object): for widget in module.widgets(): if widget.module and self.__config.autohide(widget.module.name): if not any( - state in widget.state() for state in ["warning", "critical", "mayhide"] + state in widget.state() for state in ["warning", "critical"] ): continue if module.hidden(): diff --git a/bumblebee_status/modules/contrib/progress.py b/bumblebee_status/modules/contrib/progress.py index e818197..a1938d2 100644 --- a/bumblebee_status/modules/contrib/progress.py +++ b/bumblebee_status/modules/contrib/progress.py @@ -102,7 +102,7 @@ class Module(core.module.Module): def state(self, widget): if self.__active: return "copying" - return ["pending", "mayhide"] + return "pending" # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4