From 74ecbb6ca8e3202cafc69bfbf332081a5eec85cb Mon Sep 17 00:00:00 2001 From: tobi-wan-kenobi Date: Fri, 5 Nov 2021 19:11:45 +0100 Subject: [PATCH] [core/output] fix logic error when using "autohide" - when state is critical or warning -> *show* the module - when state is mayhide -> *hide* the module see #835 --- bumblebee_status/core/output.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bumblebee_status/core/output.py b/bumblebee_status/core/output.py index cf79f2f..47283eb 100644 --- a/bumblebee_status/core/output.py +++ b/bumblebee_status/core/output.py @@ -229,9 +229,11 @@ 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 "mayhide" in widget.state(): + continue if module.hidden(): continue if widget.hidden: