merge-requests/28/head
Bob Mottram 2022-08-29 10:48:39 +01:00
parent ce73912b5b
commit 7ee99bcbfa
2 changed files with 2 additions and 1 deletions

View File

@ -5871,9 +5871,9 @@ class PubServer(BaseHTTPRequestHandler):
if check_name_and_bio:
redirect_path = 'previewAvatar'
# change the theme from edit profile screen
if nickname == admin_nickname or \
is_artist(base_dir, nickname):
# change theme
if fields.get('themeDropdown'):
if self.server.theme_name != \
fields['themeDropdown']:

View File

@ -542,6 +542,7 @@ def reset_theme_designer_settings(base_dir: str) -> None:
if os.path.isfile(custom_variables_file):
try:
os.remove(custom_variables_file)
print('Theme designer settings were reset')
except OSError:
print('EX: unable to remove theme designer settings on reset')