Remove previous text mode banner

merge-requests/16/head
Bob Mottram 2021-02-05 19:42:51 +00:00
parent d63aa8763f
commit f3ce5cb492
1 changed files with 2 additions and 0 deletions

View File

@ -441,6 +441,8 @@ def _setThemeImages(baseDir: str, name: str) -> None:
textModeBannerFilename = \
baseDir + '/theme/' + themeNameLower + '/banner.txt'
if os.path.isfile(baseDir + '/accounts/banner.txt'):
os.remove(baseDir + '/accounts/banner.txt')
if os.path.isfile(textModeBannerFilename):
try:
copyfile(textModeBannerFilename,