Show rnstatus in connectivity status on desktop

This commit is contained in:
Mark Qvist 2024-12-08 19:45:17 +01:00
parent 401d152935
commit 2cc4182376
1 changed files with 24 additions and 19 deletions

View File

@ -2503,8 +2503,8 @@ class SidebandApp(MDApp):
return "Could not retrieve connectivity status" return "Could not retrieve connectivity status"
def connectivity_status(self, sender): def connectivity_status(self, sender):
if RNS.vendor.platformutils.is_android():
hs = dp(22) hs = dp(22)
yes_button = MDRectangleFlatButton(text="OK",font_size=dp(18)) yes_button = MDRectangleFlatButton(text="OK",font_size=dp(18))
dialog = MDDialog( dialog = MDDialog(
title="Connectivity Status", title="Connectivity Status",
@ -2528,6 +2528,11 @@ class SidebandApp(MDApp):
self.connectivity_updater = Clock.schedule_interval(cs_updater, 2.0) self.connectivity_updater = Clock.schedule_interval(cs_updater, 2.0)
else:
if not self.utilities_ready:
self.utilities_init()
self.utilities_screen.rnstatus_action()
def ingest_lxm_action(self, sender): def ingest_lxm_action(self, sender):
def cb(dt): def cb(dt):
self.open_ingest_lxm_dialog(sender) self.open_ingest_lxm_dialog(sender)