From f2abea9e6121b4f3ea7cc9bbb93746dadd1c5e7c Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Tue, 31 Oct 2023 23:43:29 +0100 Subject: [PATCH] Set transition --- sbapp/main.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sbapp/main.py b/sbapp/main.py index 6af838e..18ced12 100644 --- a/sbapp/main.py +++ b/sbapp/main.py @@ -1515,11 +1515,20 @@ class SidebandApp(MDApp): self.information_screen.ids.information_info.bind(on_ref_press=link_exec) def information_open(self, sender=None, direction="left", no_transition=False): + if no_transition: + self.root.ids.screen_manager.transition = self.no_transition + else: + self.root.ids.screen_manager.transition = self.slide_transition + self.root.ids.screen_manager.transition.direction = direction + self.root.ids.screen_manager.transition.direction = "left" self.root.ids.screen_manager.current = "information_screen" self.root.ids.nav_drawer.set_state("closed") self.sideband.setstate("app.displaying", self.root.ids.screen_manager.current) + if no_transition: + self.root.ids.screen_manager.transition = self.slide_transition + def close_information_action(self, sender=None): self.open_conversations(direction="right")