mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2025-12-13 00:18:52 +01:00
wifilist bug fix
This commit is contained in:
parent
30149a8f24
commit
28a4e33c2b
@ -414,7 +414,7 @@ type WifiList struct{
|
|||||||
InfoPage *WifiInfoPage
|
InfoPage *WifiInfoPage
|
||||||
|
|
||||||
MyList []*NetItem
|
MyList []*NetItem
|
||||||
|
CurBssid string
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewWifiList() *WifiList {
|
func NewWifiList() *WifiList {
|
||||||
@ -765,6 +765,13 @@ func (self *WifiList) ConfigWireless(password string) {
|
|||||||
netid := self.PsIndex
|
netid := self.PsIndex
|
||||||
fmt.Println(netid, " ", password)
|
fmt.Println(netid, " ", password)
|
||||||
|
|
||||||
|
for i,v := range self.MyList {
|
||||||
|
if v.Bssid == self.CurBssid {
|
||||||
|
netid = i
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
self.Wireless.Method("SetWirelessProperty",netid,"dhcphostname","GameShell")
|
self.Wireless.Method("SetWirelessProperty",netid,"dhcphostname","GameShell")
|
||||||
self.Wireless.Method("SetWirelessProperty",netid,"ip","None")
|
self.Wireless.Method("SetWirelessProperty",netid,"ip","None")
|
||||||
@ -963,6 +970,7 @@ func (self *WifiList) KeyDown( ev *event.Event ) {
|
|||||||
if len(self.MyList) == 0 {
|
if len(self.MyList) == 0 {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
self.CurBssid = self.MyList[self.PsIndex].Bssid
|
||||||
|
|
||||||
wicd_wireless_encrypt_pwd := self.GetWirelessEncrypt(self.PsIndex)
|
wicd_wireless_encrypt_pwd := self.GetWirelessEncrypt(self.PsIndex)
|
||||||
fmt.Println("wicd_wireless_encrypt_pwd ", wicd_wireless_encrypt_pwd)
|
fmt.Println("wicd_wireless_encrypt_pwd ", wicd_wireless_encrypt_pwd)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user