[core/theme] slight refactoring
This commit is contained in:
parent
32e5d633f4
commit
c4762d92f7
1 changed files with 3 additions and 4 deletions
|
@ -88,7 +88,6 @@ class Theme(object):
|
|||
def get(self, key, widget=None, default=None):
|
||||
if not widget:
|
||||
widget = core.widget.Widget('')
|
||||
if isinstance(widget, str):
|
||||
# special handling
|
||||
if widget == 'previous':
|
||||
return self.__previous.get(key, None)
|
||||
|
|
Loading…
Reference in a new issue