mirror of
https://github.com/clockworkpi/launcher.git
synced 2025-12-13 10:18:51 +01:00
commit
1b48ca875b
@ -568,6 +568,8 @@ class WifiList(Page):
|
|||||||
password_inputed = "".join(myvars.PasswordPage._Textarea._MyWords)
|
password_inputed = "".join(myvars.PasswordPage._Textarea._MyWords)
|
||||||
if is_wifi_connected_now() == False:
|
if is_wifi_connected_now() == False:
|
||||||
self.ConfigWireless(password_inputed)
|
self.ConfigWireless(password_inputed)
|
||||||
|
else:
|
||||||
|
self.ShowBox(MyLangManager.Tr("Disconnect first"))
|
||||||
|
|
||||||
def OnReturnBackCb(self):
|
def OnReturnBackCb(self):
|
||||||
pass
|
pass
|
||||||
@ -621,8 +623,8 @@ class WifiList(Page):
|
|||||||
for i in wicd_wirelss_encrypt_pwd:
|
for i in wicd_wirelss_encrypt_pwd:
|
||||||
if "preshared_key" in i:
|
if "preshared_key" in i:
|
||||||
if i["preshared_key"] != None:
|
if i["preshared_key"] != None:
|
||||||
if len(i["preshared_key"]) > 0:
|
if len(str(i["preshared_key"])) > 0:
|
||||||
thepass = i["preshared_key"]
|
thepass = str(i["preshared_key"])
|
||||||
break
|
break
|
||||||
|
|
||||||
myvars.PasswordPage.SetPassword(thepass)
|
myvars.PasswordPage.SetPassword(thepass)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user