From f18e0d3c3ce8b9c2896521d67f5acfc21d4c764f Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Thu, 30 Nov 2023 14:43:57 -0600 Subject: [PATCH] Set full screen differently, so it always works --- wuttapos/app.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/wuttapos/app.py b/wuttapos/app.py index 876e539..042b9d3 100644 --- a/wuttapos/app.py +++ b/wuttapos/app.py @@ -162,8 +162,6 @@ def main(page: ft.Page): threading.excepthook = thread_exc_hook page.title = f"WuttaPOS v{wuttapos.__version__}" - page.window_full_screen = True - # page.vertical_alignment = ft.MainAxisAlignment.CENTER # global defaults for button/text styles etc. page.data = { @@ -221,6 +219,11 @@ def main(page: ft.Page): elif page.route == '/login': page.views.append(LoginView(config, '/login')) + # nb. setting this "last minute" on page change seems to be + # more reliable, otherwise the app doesn't always startup in + # full screen for some reason + page.window_full_screen = True + page.update() # TODO: this was in example docs but not sure what it's for?