dont allow ppl to use transparent theme without background

pull/29/head
Aevann1 2022-11-28 08:11:07 +02:00
parent 6fa0290827
commit 3183e0a28e
1 changed files with 1 additions and 0 deletions

View File

@ -41,6 +41,7 @@ def settings_personal(v:User):
def remove_background(v):
if v.background:
v.background = None
if v.theme == 'transparent': v.theme = 'midnight'
g.db.add(v)
return {"message": "Background removed!"}