[core/output] Always hide modules that use "hidden()"
This commit is contained in:
parent
32444ed49f
commit
611bed2007
1 changed files with 2 additions and 2 deletions
|
@ -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')
|
||||||
|
|
Loading…
Reference in a new issue