performance improves to module 'title'
This commit is contained in:
parent
92e568c467
commit
574735adab
2 changed files with 40 additions and 28 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue