[core/module] Make name and module_name attributes
This commit is contained in:
parent
b27956071f
commit
1e4955d4b8
4 changed files with 9 additions and 13 deletions
|
@ -162,7 +162,7 @@ class i3(object):
|
|||
def blocks(self, module):
|
||||
blocks = []
|
||||
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(state in widget.state() for state in [ 'warning', 'critical']):
|
||||
continue
|
||||
if module.hidden():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue