Clear person options background if file doesn't exist

merge-requests/8/head
Bob Mottram 2020-11-02 11:12:04 +00:00
parent 3777364459
commit ef96c3b471
1 changed files with 7 additions and 0 deletions

View File

@ -7936,6 +7936,13 @@ def htmlPersonOptions(cssCache: {}, translate: {}, baseDir: str,
profileStyle.replace('--follow-text-entry-width: 90%;',
'--follow-text-entry-width: 20%;')
if not os.path.isfile(baseDir + '/accounts/' +
'options-background.jpg'):
profileStyle = \
profileStyle.replace('background-image: ' + \
'url("options-background.jpg");',
'background-image: none;')
# To snooze, or not to snooze? That is the question
snoozeButtonStr = 'Snooze'
if nickname: