[core/module] Make name and module_name attributes

This commit is contained in:
tobi-wan-kenobi 2020-04-30 12:50:24 +02:00
parent b27956071f
commit 1e4955d4b8
4 changed files with 9 additions and 13 deletions

View file

@ -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():