[core/widget] Make module an attribute
Instead of having an artifical getter/setter method, just make module a plain attribute.
This commit is contained in:
parent
9cd9ff626d
commit
b27956071f
8 changed files with 12 additions and 19 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