Skip to content

Commit

Permalink
Network error now have better messages
Browse files Browse the repository at this point in the history
  • Loading branch information
LyamBRS committed Jun 5, 2023
1 parent 218db7e commit 9c3b0a8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Libraries/BRS_Python_Libraries
6 changes: 6 additions & 0 deletions Programs/Pages/NetworkMenu.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,36 +514,42 @@ def CheckOnAsyncFunction(self, *args):

if(WiFiProgress.wifis == Execution.Failed):
anim = Animation(pos_hint = {"center_x":0.5, "center_y":0.45}, t="in_out_back")
self.NoWiFiCard.textDisplayed.text = _("Failed to get wireless WiFi networks. Your device may not support WiFi. Please use Ethernet if available.")
anim.start(self.NoWiFiCard)
KontrolRGB.DisplayMinorProblem()
return

if(WiFiProgress.wifis == Execution.Crashed):
anim = Animation(pos_hint = {"center_x":0.5, "center_y":0.45}, t="in_out_back")
self.NoWiFiCard.textDisplayed.text = _("Crashed while getting wifi networks. Your device may not support WiFi. Please use Ethernet if available.")
anim.start(self.NoWiFiCard)
KontrolRGB.DisplayMinorProblem()
return

if(WiFiProgress.wifis == Execution.Incompatibility):
anim = Animation(pos_hint = {"center_x":0.5, "center_y":0.45}, t="in_out_back")
self.NoWiFiCard.textDisplayed.text = _("An incompatibility occured. Your device may not support WiFi. Please use Ethernet if available.")
anim.start(self.NoWiFiCard)
KontrolRGB.DisplayMinorProblem()
return

if(WiFiProgress.wifis == Execution.NoConnection):
anim = Animation(pos_hint = {"center_x":0.5, "center_y":0.45}, t="in_out_back")
self.NoWiFiCard.textDisplayed.text = _("An error occured with a return code of NoConnection. We're not sure what this means but your device may not support wireless networks.")
anim.start(self.NoWiFiCard)
KontrolRGB.DisplayMinorProblem()
return

if(WiFiProgress.wifis == Execution.Unecessary):
anim = Animation(pos_hint = {"center_x":0.5, "center_y":0.45}, t="in_out_back")
self.NoWiFiCard.textDisplayed.text = _("Kontrol got an Unecessary execution code while attempting to fetch wireless networks nearby.")
anim.start(self.NoWiFiCard)
KontrolRGB.DisplayMinorProblem()
return

if(WiFiProgress.wifis == Execution.ByPassed):
anim = Animation(pos_hint = {"center_x":0.5, "center_y":0.45}, t="in_out_back")
self.NoWiFiCard.textDisplayed.text = _("Kontrol bypassed the fetching of nearby wireless networks. Kontrol may not support wireless network detection or connections on the device you're running the application on.")
anim.start(self.NoWiFiCard)
KontrolRGB.DisplayMinorProblem()
return
Expand Down

0 comments on commit 9c3b0a8

Please sign in to comment.