Fixed object details transition
This commit is contained in:
parent
2ce9ea870e
commit
85f295c0c6
|
@ -3970,7 +3970,7 @@ class SidebandApp(MDApp):
|
||||||
|
|
||||||
def object_details_action(self, sender=None, from_conv=False, from_telemetry=False, source_dest=None, direction="left"):
|
def object_details_action(self, sender=None, from_conv=False, from_telemetry=False, source_dest=None, direction="left"):
|
||||||
if self.root.ids.screen_manager.has_screen("object_details_screen"):
|
if self.root.ids.screen_manager.has_screen("object_details_screen"):
|
||||||
self.object_details_open(sender=sender, from_conv=from_conv, from_telemetry=from_telemetry, source_dest=source_dest, no_transition=True)
|
self.object_details_open(sender=sender, from_conv=from_conv, from_telemetry=from_telemetry, source_dest=source_dest, direction=direction)
|
||||||
else:
|
else:
|
||||||
self.loader_action(direction=direction)
|
self.loader_action(direction=direction)
|
||||||
def final(dt):
|
def final(dt):
|
||||||
|
@ -3993,8 +3993,6 @@ class SidebandApp(MDApp):
|
||||||
if self.sideband.config["telemetry_enabled"] == True:
|
if self.sideband.config["telemetry_enabled"] == True:
|
||||||
self.sideband.update_telemetry()
|
self.sideband.update_telemetry()
|
||||||
|
|
||||||
self.root.ids.nav_drawer.set_state("closed")
|
|
||||||
|
|
||||||
if source_dest != None:
|
if source_dest != None:
|
||||||
telemetry_source = source_dest
|
telemetry_source = source_dest
|
||||||
else:
|
else:
|
||||||
|
@ -4003,12 +4001,12 @@ class SidebandApp(MDApp):
|
||||||
else:
|
else:
|
||||||
telemetry_source = None
|
telemetry_source = None
|
||||||
|
|
||||||
|
self.root.ids.nav_drawer.set_state("closed")
|
||||||
|
|
||||||
if telemetry_source == None:
|
if telemetry_source == None:
|
||||||
self.conversations_action(direction="right")
|
self.conversations_action(direction="right")
|
||||||
else:
|
|
||||||
if self.object_details_screen == None:
|
|
||||||
self.object_details_screen = ObjectDetails(self)
|
|
||||||
|
|
||||||
|
else:
|
||||||
Clock.schedule_once(lambda dt: self.object_details_screen.set_source(telemetry_source, from_conv=from_conv, from_telemetry=from_telemetry), 0.0)
|
Clock.schedule_once(lambda dt: self.object_details_screen.set_source(telemetry_source, from_conv=from_conv, from_telemetry=from_telemetry), 0.0)
|
||||||
|
|
||||||
def vj(dt):
|
def vj(dt):
|
||||||
|
|
Loading…
Reference in New Issue