From eca9c246659727aa4b80e625418271a260898b86 Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Fri, 1 Oct 2021 22:14:33 +1000 Subject: [PATCH] add fullscreen into pa_prefs class, and default to False if not set --- options.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/options.py b/options.py index afcf317..f8ae070 100644 --- a/options.py +++ b/options.py @@ -19,6 +19,7 @@ class PA_PREF(db.Model): st_offset = db.Column(db.Integer, unique=False, nullable=False ) size = db.Column(db.Integer, unique=False, nullable=False ) folders = db.Column(db.Boolean, unique=False, nullable=False ) + fullscreen = db.Column(db.Boolean, unique=False, nullable=False ) def __repr__(self): return f"" @@ -102,6 +103,8 @@ class Options(PA): self.cwd = request.form['cwd'] if 'fullscreen' in request.form: self.fullscreen=request.form['fullscreen'] + else: + self.fullscreen=False if 'prev' in request.form: self.offset -= int(self.how_many) if self.offset < 0: