This commit is contained in:
cuu 2018-12-07 23:49:53 +08:00
parent f023c503d0
commit 709fe20f49
2 changed files with 4 additions and 2 deletions

View File

@ -902,7 +902,9 @@ func (self *WifiList) AbortedAndReturnToUpLevel() {
func (self *WifiList) OnReturnBackCb() { func (self *WifiList) OnReturnBackCb() {
password_inputed := strings.Join(APIOBJ.PasswordPage.Textarea.MyWords,"") password_inputed := strings.Join(APIOBJ.PasswordPage.Textarea.MyWords,"")
self.ConfigWireless(password_inputed) if self.Screen.DBusManager.IsWifiConnectedNow() == false {
self.ConfigWireless(password_inputed)
}
} }
func (self *WifiList) KeyDown( ev *event.Event ) { func (self *WifiList) KeyDown( ev *event.Event ) {

View File

@ -100,7 +100,7 @@ func (self *ConfirmPage) SnapMsg(msg string) {
x,y := self.MyList[0].Coord() x,y := self.MyList[0].Coord()
w,h := self.MyList[0].Size() w,h := self.MyList[0].Size()
self.MyList[0].NewCoord( (self.Width - w )/2, (self.Width - h)/2 ) self.MyList[0].NewCoord( (self.Width - w )/2, (self.Height - h)/2 )
x, y = self.MyList[0].Coord() x, y = self.MyList[0].Coord()