[core/output] Always hide modules that use "hidden()"

This commit is contained in:
tobi-wan-kenobi 2020-04-29 14:39:12 +02:00
parent 32444ed49f
commit 611bed2007

View file

@ -165,8 +165,8 @@ class i3(object):
if widget.module() and self.__config.autohide(widget.module().name()): if widget.module() and self.__config.autohide(widget.module().name()):
if not any(state in widget.state() for state in [ 'warning', 'critical']): if not any(state in widget.state() for state in [ 'warning', 'critical']):
continue continue
if module.hidden(): if module.hidden():
continue continue
blocks.extend(self.__separator_block(module, widget)) blocks.extend(self.__separator_block(module, widget))
blocks.append(self.__content_block(module, widget)) blocks.append(self.__content_block(module, widget))
core.event.trigger('next-widget') core.event.trigger('next-widget')