Set publish icon state after theme change

main
Bob Mottram 2020-10-24 17:43:58 +01:00
parent 36666db02d
commit b2dd7e890b
1 changed files with 6 additions and 0 deletions

View File

@ -3476,6 +3476,9 @@ class PubServer(BaseHTTPRequestHandler):
setTheme(baseDir, setTheme(baseDir,
fields['themeDropdown'], fields['themeDropdown'],
domain) domain)
self.server.showPublishAsIcon = \
getConfigParam(self.server.baseDir,
'showPublishAsIcon')
setNewsAvatar(baseDir, setNewsAvatar(baseDir,
fields['themeDropdown'], fields['themeDropdown'],
httpPrefix, httpPrefix,
@ -3820,6 +3823,9 @@ class PubServer(BaseHTTPRequestHandler):
currTheme = getTheme(baseDir) currTheme = getTheme(baseDir)
if currTheme: if currTheme:
setTheme(baseDir, currTheme, domain) setTheme(baseDir, currTheme, domain)
self.server.showPublishAsIcon = \
getConfigParam(self.server.baseDir,
'showPublishAsIcon')
# only receive DMs from accounts you follow # only receive DMs from accounts you follow
followDMsFilename = \ followDMsFilename = \