From 8bb5fb5fa3a2825b5fd3d45a762d80a427d78b67 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Thu, 6 Oct 2022 16:53:12 +0200 Subject: [PATCH] Cleanup --- sbapp/main.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sbapp/main.py b/sbapp/main.py index d2fde1f..08d0139 100644 --- a/sbapp/main.py +++ b/sbapp/main.py @@ -280,8 +280,11 @@ class SidebandApp(MDApp): if self.conversations_view != None: self.conversations_view.update() - def on_start(self): + def on_start(self): self.last_exit_event = time.time() + self.root.ids.screen_manager.transition.duration = 0.25 + self.root.ids.screen_manager.transition.bind(on_complete=self.screen_transition_complete) + EventLoop.window.bind(on_keyboard=self.keyboard_event) EventLoop.window.bind(on_key_down=self.keydown_event) @@ -307,10 +310,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.screen_manager.transition.duration = 0.25 - self.root.ids.screen_manager.transition.bind(on_complete=self.screen_transition_complete) - - Clock.schedule_once(self.start_core, 3.5) + Clock.schedule_once(self.start_core, 1.5) # Part of the focus hack fix def android_focus_fix(self, sender, val):