[core/theme] Small bugfix (widget needs to have linked module)
This is mainly for the autotests
This commit is contained in:
parent
9f77514a1c
commit
4716481087
2 changed files with 10 additions and 1 deletions
|
@ -233,7 +233,8 @@ class Theme(object):
|
|||
widget.set(key, (idx + 1) % len(value))
|
||||
value = value[idx]
|
||||
|
||||
value = widget.get_module().parameter("theme.{}".format(name), value)
|
||||
if widget.get_module() is not None:
|
||||
value = widget.get_module().parameter("theme.{}".format(name), value)
|
||||
|
||||
if isinstance(value, list) or isinstance(value, dict):
|
||||
return value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue