From 1590ea44b831752d5cc03d1cf72e5a5f73f7cb4f Mon Sep 17 00:00:00 2001 From: cuu Date: Thu, 9 May 2019 20:31:12 +0800 Subject: [PATCH] wifi_list bug fix --- Menu/GameShell/10_Settings/Wifi/wifi_list.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Menu/GameShell/10_Settings/Wifi/wifi_list.py b/Menu/GameShell/10_Settings/Wifi/wifi_list.py index fa042ae..c1d1037 100644 --- a/Menu/GameShell/10_Settings/Wifi/wifi_list.py +++ b/Menu/GameShell/10_Settings/Wifi/wifi_list.py @@ -568,7 +568,9 @@ class WifiList(Page): password_inputed = "".join(myvars.PasswordPage._Textarea._MyWords) if is_wifi_connected_now() == False: self.ConfigWireless(password_inputed) - + else: + self.ShowBox(MyLangManager.Tr("Disconnect first")) + def OnReturnBackCb(self): pass @@ -621,8 +623,8 @@ class WifiList(Page): for i in wicd_wirelss_encrypt_pwd: if "preshared_key" in i: if i["preshared_key"] != None: - if len(i["preshared_key"]) > 0: - thepass = i["preshared_key"] + if len(str(i["preshared_key"])) > 0: + thepass = str(i["preshared_key"]) break myvars.PasswordPage.SetPassword(thepass)