mirror of
https://github.com/liberatedsystems/Sideband_CE.git
synced 2024-09-03 04:13:27 +02:00
Close sub-hardware screens on swipe back
This commit is contained in:
parent
00ae5e9e81
commit
cb79716fc2
@ -508,7 +508,14 @@ class SidebandApp(MDApp):
|
|||||||
self.last_exit_event = time.time()
|
self.last_exit_event = time.time()
|
||||||
|
|
||||||
else:
|
else:
|
||||||
self.open_conversations(direction="right")
|
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")
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user