[core/config] Allow modules to be hidden when in critical/error state
When a module is in critical state, the user can now hide the module (e.g. if pulseaudio fails to load). fixes #746
This commit is contained in:
parent
45c0a382c9
commit
beca26c2bf
2 changed files with 19 additions and 3 deletions
|
@ -216,6 +216,8 @@ class i3(object):
|
|||
continue
|
||||
if module.hidden():
|
||||
continue
|
||||
if "critical" in widget.state() and self.__config.errorhide(widget.module.name):
|
||||
continue
|
||||
blocks.extend(self.separator_block(module, widget))
|
||||
blocks.append(self.__content_block(module, widget))
|
||||
core.event.trigger("next-widget")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue