Close sub-hardware screens on swipe back

This commit is contained in:
Mark Qvist 2022-11-03 23:00:34 +01:00
parent 00ae5e9e81
commit cb79716fc2

View File

@ -507,6 +507,13 @@ class SidebandApp(MDApp):
else:
self.last_exit_event = time.time()
else:
if self.root.ids.screen_manager.current == "hardware_rnode_screen":
self.close_sub_hardware_action()
elif self.root.ids.screen_manager.current == "hardware_modem_screen":
self.close_sub_hardware_action()
elif self.root.ids.screen_manager.current == "hardware_serial_screen":
self.close_sub_hardware_action()
else:
self.open_conversations(direction="right")