From 174b021a7078d98391e5b9d29945104ce29d98f6 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Sun, 22 Oct 2023 21:04:28 +0200 Subject: [PATCH] Optimise timings --- sbapp/main.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/sbapp/main.py b/sbapp/main.py index 247a658..52bed1b 100644 --- a/sbapp/main.py +++ b/sbapp/main.py @@ -1,4 +1,4 @@ -__debug_build__ = True +__debug_build__ = False __disable_shaders__ = False __version__ = "0.6.3" __variant__ = "beta" @@ -176,9 +176,11 @@ class SidebandApp(MDApp): self.set_bars_colors() - self.sideband.setstate("app.loaded", True) - self.sideband.setstate("app.running", True) - self.sideband.setstate("app.foreground", True) + def sjob(dt): + self.sideband.setstate("app.loaded", True) + self.sideband.setstate("app.running", True) + self.sideband.setstate("app.foreground", True) + Clock.schedule_once(sjob, 6.5) def start_service(self): if RNS.vendor.platformutils.is_android(): @@ -697,7 +699,7 @@ class SidebandApp(MDApp): self.root.ids.screen_manager.app = self self.root.ids.app_version_info.text = "Sideband v"+__version__+" "+__variant__ self.root.ids.nav_scrollview.effect_cls = ScrollEffect - Clock.schedule_once(self.start_core, 3.5) + Clock.schedule_once(self.start_core, 0.25) # Part of the focus hack fix def android_focus_fix(self, sender, val):