revert to the default theme if the selected themes stylesheet is missing
This commit is contained in:
parent
a4e12c1d94
commit
976824ad99
|
@ -400,8 +400,11 @@ class TopLevel(resource.Resource):
|
||||||
self.putChild("tracker", Tracker())
|
self.putChild("tracker", Tracker())
|
||||||
|
|
||||||
theme = component.get("DelugeWeb").config["theme"]
|
theme = component.get("DelugeWeb").config["theme"]
|
||||||
|
if not os.path.isfile(rpath("css", "xtheme-%s.css" % theme)):
|
||||||
|
theme = CONFIG_DEFAULTS.get("theme")
|
||||||
self.__stylesheets.insert(1, "/css/xtheme-%s.css" % theme)
|
self.__stylesheets.insert(1, "/css/xtheme-%s.css" % theme)
|
||||||
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def scripts(self):
|
def scripts(self):
|
||||||
return self.__scripts
|
return self.__scripts
|
||||||
|
|
Loading…
Reference in New Issue