mirror of https://gitlab.com/bashrc2/epicyon
Handle default theme news avatar
parent
606cb990fc
commit
326e50ef0e
5
theme.py
5
theme.py
|
@ -1025,7 +1025,10 @@ def setNewsAvatar(baseDir: str, name: str,
|
||||||
"""Sets the avatar for the news account
|
"""Sets the avatar for the news account
|
||||||
"""
|
"""
|
||||||
nickname = 'news'
|
nickname = 'news'
|
||||||
newFilename = baseDir + '/img/icons/' + name + '/avatar_news.png'
|
if name != 'default':
|
||||||
|
newFilename = baseDir + '/img/icons/' + name + '/avatar_news.png'
|
||||||
|
else:
|
||||||
|
newFilename = baseDir + '/img/icons/avatar_news.png'
|
||||||
if not os.path.isfile(newFilename):
|
if not os.path.isfile(newFilename):
|
||||||
return
|
return
|
||||||
avatarFilename = \
|
avatarFilename = \
|
||||||
|
|
Loading…
Reference in New Issue