Improved user interface

This commit is contained in:
Mark Qvist 2022-10-13 23:04:30 +02:00
parent ca04e89c3a
commit 6293e2cf78
2 changed files with 14 additions and 2 deletions

View File

@ -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",

View File

@ -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)