From ab3c3737bb339de43b3e9bf2d359e1ab72540530 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 5 Jul 2024 20:21:56 -0500 Subject: [PATCH] fix: change how we set app to be full screen (again) this restores the way we did it originally. am hoping that latest flet has resolved whatever issue(s) may have been seen before --- wuttapos/app.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/wuttapos/app.py b/wuttapos/app.py index bc86bde..7d690cf 100644 --- a/wuttapos/app.py +++ b/wuttapos/app.py @@ -168,6 +168,7 @@ def main(page: ft.Page): threading.excepthook = thread_exc_hook page.title = f"WuttaPOS v{wuttapos.__version__}" + page.window.full_screen = True # global defaults for button/text styles etc. page.data = { @@ -225,11 +226,6 @@ 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?