[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):
|
def get(self, key, widget=None, default=None):
|
||||||
if not widget:
|
if not widget:
|
||||||
widget = core.widget.Widget('')
|
widget = core.widget.Widget('')
|
||||||
if isinstance(widget, str):
|
# special handling
|
||||||
# special handling
|
if widget == 'previous':
|
||||||
if widget == 'previous':
|
return self.__previous.get(key, None)
|
||||||
return self.__previous.get(key, None)
|
|
||||||
|
|
||||||
value = default
|
value = default
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue