mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-17 13:56:47 +00:00
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())
|
||||
|
||||
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)
|
||||
|
||||
|
||||
@property
|
||||
def scripts(self):
|
||||
return self.__scripts
|
||||
|
Loading…
x
Reference in New Issue
Block a user