From 6293e2cf7866d1202fcc969780781db216d16510 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Thu, 13 Oct 2022 23:04:30 +0200 Subject: [PATCH] Improved user interface --- sbapp/main.py | 14 +++++++++++++- sbapp/ui/layouts.py | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/sbapp/main.py b/sbapp/main.py index d9bd9bb..0d41bb8 100644 --- a/sbapp/main.py +++ b/sbapp/main.py @@ -511,7 +511,9 @@ class SidebandApp(MDApp): def conversation_action(self, sender): - self.open_conversation(sender.sb_uid) + def cb(dt): + self.open_conversation(sender.sb_uid) + Clock.schedule_once(cb, 0.15) def open_conversation(self, context_dest): if self.sideband.config["propagation_by_default"]: @@ -698,6 +700,11 @@ class SidebandApp(MDApp): dialog.open() def lxmf_sync_action(self, sender): + def cb(dt): + self.lxmf_sync_request(sender) + Clock.schedule_once(cb, 0.15) + + def lxmf_sync_request(self, sender): if self.sideband.message_router.get_outbound_propagation_node() == None: yes_button = MDFlatButton( text="OK", @@ -757,6 +764,11 @@ class SidebandApp(MDApp): dialog_content.ids.sync_status.text = self.sideband.get_sync_status() def new_conversation_action(self, sender=None): + def cb(dt): + self.new_conversation_request(sender) + Clock.schedule_once(cb, 0.15) + + def new_conversation_request(self, sender=None): try: yes_button = MDFlatButton( text="OK", diff --git a/sbapp/ui/layouts.py b/sbapp/ui/layouts.py index 9ec3cd0..3a60f51 100644 --- a/sbapp/ui/layouts.py +++ b/sbapp/ui/layouts.py @@ -1104,7 +1104,7 @@ MDNavigationLayout: MDRectangleFlatIconButton: id: hardware_modem_button icon: "router-wireless" - text: "Packet Modem" + text: "Radio Modem" padding: [dp(0), dp(14), dp(0), dp(14)] icon_size: dp(24) font_size: dp(16)