mirror of
https://github.com/markqvist/Sideband.git
synced 2025-07-22 06:29:14 -04:00
Added full RNS status button on Android
This commit is contained in:
parent
143f440df7
commit
1c9342d772
4 changed files with 19 additions and 5 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -6,6 +6,7 @@ sbapp/bin
|
|||
sbapp/app_storage
|
||||
sbapp/RNS
|
||||
sbapp/LXMF
|
||||
sbapp/LXST
|
||||
sbapp/precompiled
|
||||
sbapp/*.DS_Store
|
||||
sbapp/*.pyc
|
||||
|
|
|
@ -97,6 +97,9 @@ getrns:
|
|||
-(rm ./RNS/__pycache__ -r)
|
||||
(cp -rv ../../LXMF/LXMF ./;rm ./LXMF/Utilities/LXMF)
|
||||
-(rm ./LXMF/__pycache__ -r)
|
||||
(cp -rv ../../LXST/LXST ./;rm ./LXST/Utilities/LXST)
|
||||
-(rm ./LXST/__pycache__ -r)
|
||||
-(rm ./LXST/Utilities/__pycache__ -r)
|
||||
|
||||
cleanrns:
|
||||
-(rm ./RNS -r)
|
||||
|
|
|
@ -2572,21 +2572,27 @@ class SidebandApp(MDApp):
|
|||
if RNS.vendor.platformutils.is_android():
|
||||
hs = dp(22)
|
||||
yes_button = MDRectangleFlatButton(text="OK",font_size=dp(18))
|
||||
full_button = MDRectangleFlatButton(text="Full RNS Status",font_size=dp(18), theme_text_color="Custom", line_color=self.color_accept, text_color=self.color_accept)
|
||||
dialog = MDDialog(
|
||||
title="Connectivity Status",
|
||||
text=str(self.get_connectivity_text()),
|
||||
buttons=[ yes_button ],
|
||||
buttons=[full_button, 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()
|
||||
def cb_rns(sender):
|
||||
dialog.dismiss()
|
||||
if self.connectivity_updater != None:
|
||||
self.connectivity_updater.cancel()
|
||||
self.rnstatus_action()
|
||||
|
||||
yes_button.bind(on_release=dl_yes)
|
||||
full_button.bind(on_release=cb_rns)
|
||||
dialog.open()
|
||||
|
||||
if self.connectivity_updater != None:
|
||||
|
@ -2595,6 +2601,9 @@ class SidebandApp(MDApp):
|
|||
self.connectivity_updater = Clock.schedule_interval(cs_updater, 2.0)
|
||||
|
||||
else:
|
||||
self.rnstatus_action()
|
||||
|
||||
def rnstatus_action(self, sender=None):
|
||||
if not self.utilities_ready:
|
||||
self.utilities_init()
|
||||
self.utilities_screen.rnstatus_action()
|
||||
|
|
1
setup.py
1
setup.py
|
@ -123,6 +123,7 @@ setuptools.setup(
|
|||
"ffpyplayer",
|
||||
"sh",
|
||||
"numpy<=1.26.4",
|
||||
"lxst>=0.2.2",
|
||||
"mistune>=3.0.2",
|
||||
"beautifulsoup4",
|
||||
"pycodec2;sys.platform!='Windows' and sys.platform!='win32' and sys.platform!='darwin'",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue