[fix] always return a list, even empty
This commit is contained in:
parent
f5f09bdb1b
commit
e2bc263520
1 changed files with 2 additions and 2 deletions
|
@ -344,10 +344,10 @@ class WidgetDrawer(object):
|
||||||
"""
|
"""
|
||||||
full_text = widget.full_text()
|
full_text = widget.full_text()
|
||||||
if widget.get_module() and widget.get_module().hidden():
|
if widget.get_module() and widget.get_module().hidden():
|
||||||
return
|
return []
|
||||||
if widget.get_module() and widget.get_module().name in self._config.autohide():
|
if widget.get_module() and widget.get_module().name in self._config.autohide():
|
||||||
if not any(state in widget.state() for state in ["warning", "critical"]):
|
if not any(state in widget.state() for state in ["warning", "critical"]):
|
||||||
return
|
return []
|
||||||
padding = self._theme.padding(widget)
|
padding = self._theme.padding(widget)
|
||||||
|
|
||||||
prefix = self._theme.prefix(widget, padding)
|
prefix = self._theme.prefix(widget, padding)
|
||||||
|
|
Loading…
Reference in a new issue