mirror of https://gitlab.com/bashrc2/epicyon
Ensure that a theme exists before setting it
parent
54224094a9
commit
ea1bf2caa3
|
@ -5807,8 +5807,9 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
os.remove(self.server.baseDir +
|
os.remove(self.server.baseDir +
|
||||||
'/fonts/custom.' + ext +
|
'/fonts/custom.' + ext +
|
||||||
'.etag')
|
'.etag')
|
||||||
setTheme(self.server.baseDir,
|
currTheme = getTheme(self.server.baseDir)
|
||||||
getTheme(self.server.baseDir))
|
if currTheme:
|
||||||
|
setTheme(self.server.baseDir, currTheme)
|
||||||
|
|
||||||
if fields.get('mediaInstance'):
|
if fields.get('mediaInstance'):
|
||||||
self.server.mediaInstance = False
|
self.server.mediaInstance = False
|
||||||
|
|
Loading…
Reference in New Issue