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,8 +902,10 @@ func (self *WifiList) AbortedAndReturnToUpLevel() {
func (self *WifiList) OnReturnBackCb() {
password_inputed := strings.Join(APIOBJ.PasswordPage.Textarea.MyWords,"")
if self.Screen.DBusManager.IsWifiConnectedNow() == false {
self.ConfigWireless(password_inputed)
}
}
func (self *WifiList) KeyDown( ev *event.Event ) {
if ev.Data["Key"] == UI.CurKeys["A"] || ev.Data["Key"] == UI.CurKeys["Menu"] {

View File

@ -100,7 +100,7 @@ func (self *ConfirmPage) SnapMsg(msg string) {
x,y := self.MyList[0].Coord()
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()