mirror of
https://github.com/clockworkpi/launcher.git
synced 2025-12-15 03:08:50 +01:00
10 times to force wifi disconnect when try to connect a new one
This commit is contained in:
parent
24abd55f86
commit
0b733435f6
@ -569,10 +569,19 @@ class WifiList(Page):
|
|||||||
if is_wifi_connected_now() == False:
|
if is_wifi_connected_now() == False:
|
||||||
self.ConfigWireless(password_inputed)
|
self.ConfigWireless(password_inputed)
|
||||||
else:
|
else:
|
||||||
self._Daemon.SetForcedDisconnect(True)
|
for i=0 to 10:
|
||||||
self._Connecting = False
|
if is_wifi_connected_now() == True:
|
||||||
self.ConfigWireless(password_inputed)
|
self._Daemon.SetForcedDisconnect(True)
|
||||||
#self.ShowBox(MyLangManager.Tr("Disconnect first"))
|
self._Connecting = False
|
||||||
|
else:
|
||||||
|
break
|
||||||
|
|
||||||
|
pygame.time.delay(100)
|
||||||
|
|
||||||
|
if is_wifi_connected_now() == False:
|
||||||
|
self.ConfigWireless(password_inputed)
|
||||||
|
else:
|
||||||
|
self.ShowBox(MyLangManager.Tr("Disconnect first"))
|
||||||
|
|
||||||
def OnReturnBackCb(self):
|
def OnReturnBackCb(self):
|
||||||
pass
|
pass
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user