Reverse extension sequence

main
Bob Mottram 2020-07-25 18:56:06 +01:00
parent aaefa01adf
commit d5b9bad0cb
1 changed files with 2 additions and 2 deletions

View File

@ -626,7 +626,7 @@ def setThemeImages(baseDir: str, name: str) -> None:
backgroundNames = ('login', 'shares', 'delete', 'follow',
'options', 'block', 'search', 'calendar')
extensions = ('png', 'jpg', 'gif')
extensions = ('gif', 'jpg', 'png')
for subdir, dirs, files in os.walk(baseDir + '/accounts'):
for acct in dirs:
@ -653,7 +653,7 @@ def setThemeImages(baseDir: str, name: str) -> None:
copyfile(backgroundImageFilename,
baseDir + '/accounts/' + backgroundType +
'-background.' + ext)
break
continue
except BaseException:
pass
# background image was not found