This commit is contained in:
Mark Qvist 2022-10-06 16:53:12 +02:00
parent c769979885
commit 8bb5fb5fa3

View File

@ -282,6 +282,9 @@ class SidebandApp(MDApp):
def on_start(self): def on_start(self):
self.last_exit_event = time.time() 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_keyboard=self.keyboard_event)
EventLoop.window.bind(on_key_down=self.keydown_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.screen_manager.app = self
self.root.ids.app_version_info.text = "Sideband v"+__version__+" "+__variant__ self.root.ids.app_version_info.text = "Sideband v"+__version__+" "+__variant__
self.root.ids.screen_manager.transition.duration = 0.25 Clock.schedule_once(self.start_core, 1.5)
self.root.ids.screen_manager.transition.bind(on_complete=self.screen_transition_complete)
Clock.schedule_once(self.start_core, 3.5)
# Part of the focus hack fix # Part of the focus hack fix
def android_focus_fix(self, sender, val): def android_focus_fix(self, sender, val):