[core/theme] slight refactoring
This commit is contained in:
parent
32e5d633f4
commit
c4762d92f7
1 changed files with 3 additions and 4 deletions
|
@ -88,10 +88,9 @@ 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)
|
||||
# special handling
|
||||
if widget == 'previous':
|
||||
return self.__previous.get(key, None)
|
||||
|
||||
value = default
|
||||
|
||||
|
|
Loading…
Reference in a new issue