performance improves to module 'title'

This commit is contained in:
adario7 2019-08-24 15:01:40 +02:00
parent 92e568c467
commit 574735adab
2 changed files with 40 additions and 28 deletions

View file

@ -63,7 +63,7 @@ class Module(object):
def widgets(self, widgets=None):
"""Return the widgets to draw for this module"""
if widgets:
self._widgets = widgets
self._widgets = widgets if isinstance(widgets, list) else [widgets]
return self._widgets
def hidden(self):