mirror of
https://github.com/markqvist/Sideband.git
synced 2024-12-24 23:19:28 -05:00
Improved navigation
This commit is contained in:
parent
e64e3b6627
commit
3bf13d7435
@ -935,7 +935,10 @@ class SidebandApp(MDApp):
|
|||||||
|
|
||||||
if text == "w":
|
if text == "w":
|
||||||
if self.root.ids.screen_manager.current == "conversations_screen":
|
if self.root.ids.screen_manager.current == "conversations_screen":
|
||||||
self.quit_action(self)
|
if self.include_conversations and not self.include_objects:
|
||||||
|
self.quit_action(self)
|
||||||
|
else:
|
||||||
|
self.conversations_action(direction="right")
|
||||||
elif self.root.ids.screen_manager.current == "map_settings_screen":
|
elif self.root.ids.screen_manager.current == "map_settings_screen":
|
||||||
self.close_sub_map_action()
|
self.close_sub_map_action()
|
||||||
elif self.root.ids.screen_manager.current == "object_details_screen":
|
elif self.root.ids.screen_manager.current == "object_details_screen":
|
||||||
@ -1013,10 +1016,13 @@ class SidebandApp(MDApp):
|
|||||||
# Handle escape/back
|
# Handle escape/back
|
||||||
if key == 27:
|
if key == 27:
|
||||||
if self.root.ids.screen_manager.current == "conversations_screen":
|
if self.root.ids.screen_manager.current == "conversations_screen":
|
||||||
if time.time() - self.last_exit_event < 2:
|
if not self.include_conversations and self.include_objects:
|
||||||
self.quit_action(self)
|
self.conversations_action(direction="right")
|
||||||
else:
|
else:
|
||||||
self.last_exit_event = time.time()
|
if time.time() - self.last_exit_event < 2:
|
||||||
|
self.quit_action(self)
|
||||||
|
else:
|
||||||
|
self.last_exit_event = time.time()
|
||||||
|
|
||||||
else:
|
else:
|
||||||
if self.root.ids.screen_manager.current == "hardware_rnode_screen":
|
if self.root.ids.screen_manager.current == "hardware_rnode_screen":
|
||||||
|
@ -62,7 +62,7 @@ MDNavigationLayout:
|
|||||||
|
|
||||||
|
|
||||||
OneLineIconListItem:
|
OneLineIconListItem:
|
||||||
text: "Objects"
|
text: "Objects & Devices"
|
||||||
on_release: root.ids.screen_manager.app.objects_action(self)
|
on_release: root.ids.screen_manager.app.objects_action(self)
|
||||||
# _no_ripple_effect: True
|
# _no_ripple_effect: True
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user