Don't copy from template when setting custom font

main
Bob Mottram 2020-05-26 22:35:48 +01:00
parent 80a9634572
commit b6dc900305
1 changed files with 1 additions and 3 deletions

View File

@ -123,9 +123,7 @@ def setCustomFont(baseDir: str):
themeFiles = ('epicyon.css', 'login.css', 'follow.css', themeFiles = ('epicyon.css', 'login.css', 'follow.css',
'suspended.css', 'calendar.css', 'blog.css') 'suspended.css', 'calendar.css', 'blog.css')
for filename in themeFiles: for filename in themeFiles:
templateFilename = baseDir + '/epicyon-' + filename templateFilename = baseDir + '/' + filename
if filename == 'epicyon.css':
templateFilename = baseDir + '/epicyon-profile.css'
if not os.path.isfile(templateFilename): if not os.path.isfile(templateFilename):
continue continue
with open(templateFilename, 'r') as cssfile: with open(templateFilename, 'r') as cssfile: