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