Revert "[contrib/progress] allow hiding of inactive state"

This reverts commit cbd989309d.
This commit is contained in:
tobi-wan-kenobi 2021-11-06 08:17:18 +01:00
parent 6a3e4761bf
commit 5ad211f862
2 changed files with 2 additions and 2 deletions

View file

@ -229,7 +229,7 @@ class i3(object):
for widget in module.widgets(): for widget in module.widgets():
if widget.module and self.__config.autohide(widget.module.name): if widget.module and self.__config.autohide(widget.module.name):
if not any( if not any(
state in widget.state() for state in ["warning", "critical", "mayhide"] state in widget.state() for state in ["warning", "critical"]
): ):
continue continue
if module.hidden(): if module.hidden():

View file

@ -102,7 +102,7 @@ class Module(core.module.Module):
def state(self, widget): def state(self, widget):
if self.__active: if self.__active:
return "copying" return "copying"
return ["pending", "mayhide"] return "pending"
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4