Show rnstatus in connectivity status on desktop
This commit is contained in:
parent
401d152935
commit
2cc4182376
|
@ -2503,30 +2503,35 @@ 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):
|
||||||
hs = dp(22)
|
if RNS.vendor.platformutils.is_android():
|
||||||
|
hs = dp(22)
|
||||||
|
yes_button = MDRectangleFlatButton(text="OK",font_size=dp(18))
|
||||||
|
dialog = MDDialog(
|
||||||
|
title="Connectivity Status",
|
||||||
|
text=str(self.get_connectivity_text()),
|
||||||
|
buttons=[ yes_button ],
|
||||||
|
# elevation=0,
|
||||||
|
)
|
||||||
|
def cs_updater(dt):
|
||||||
|
dialog.text = str(self.get_connectivity_text())
|
||||||
|
def dl_yes(s):
|
||||||
|
self.connectivity_updater.cancel()
|
||||||
|
dialog.dismiss()
|
||||||
|
if self.connectivity_updater != None:
|
||||||
|
self.connectivity_updater.cancel()
|
||||||
|
|
||||||
|
yes_button.bind(on_release=dl_yes)
|
||||||
|
dialog.open()
|
||||||
|
|
||||||
yes_button = MDRectangleFlatButton(text="OK",font_size=dp(18))
|
|
||||||
dialog = MDDialog(
|
|
||||||
title="Connectivity Status",
|
|
||||||
text=str(self.get_connectivity_text()),
|
|
||||||
buttons=[ yes_button ],
|
|
||||||
# elevation=0,
|
|
||||||
)
|
|
||||||
def cs_updater(dt):
|
|
||||||
dialog.text = str(self.get_connectivity_text())
|
|
||||||
def dl_yes(s):
|
|
||||||
self.connectivity_updater.cancel()
|
|
||||||
dialog.dismiss()
|
|
||||||
if self.connectivity_updater != None:
|
if self.connectivity_updater != None:
|
||||||
self.connectivity_updater.cancel()
|
self.connectivity_updater.cancel()
|
||||||
|
|
||||||
yes_button.bind(on_release=dl_yes)
|
self.connectivity_updater = Clock.schedule_interval(cs_updater, 2.0)
|
||||||
dialog.open()
|
|
||||||
|
|
||||||
if self.connectivity_updater != None:
|
else:
|
||||||
self.connectivity_updater.cancel()
|
if not self.utilities_ready:
|
||||||
|
self.utilities_init()
|
||||||
self.connectivity_updater = Clock.schedule_interval(cs_updater, 2.0)
|
self.utilities_screen.rnstatus_action()
|
||||||
|
|
||||||
def ingest_lxm_action(self, sender):
|
def ingest_lxm_action(self, sender):
|
||||||
def cb(dt):
|
def cb(dt):
|
||||||
|
|
Loading…
Reference in New Issue