forked from rDrama/rDrama
dont allow ppl to use transparent theme without background
parent
6fa0290827
commit
3183e0a28e
|
@ -41,6 +41,7 @@ def settings_personal(v:User):
|
||||||
def remove_background(v):
|
def remove_background(v):
|
||||||
if v.background:
|
if v.background:
|
||||||
v.background = None
|
v.background = None
|
||||||
|
if v.theme == 'transparent': v.theme = 'midnight'
|
||||||
g.db.add(v)
|
g.db.add(v)
|
||||||
return {"message": "Background removed!"}
|
return {"message": "Background removed!"}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue