update bug fix

This commit is contained in:
cuu 2018-12-08 14:35:14 +08:00
parent fd5fa1f962
commit 46a3449ad1
2 changed files with 2 additions and 1 deletions

View File

@ -202,6 +202,7 @@ func (self *UpdatePage) CheckUpdate() bool {
if git_revision_short_hash != ret.GitVersion {
self.ConfirmPage.Version = ret.GitVersion
self.ConfirmPage.GIT = true
self.Screen.PushCurPage()
self.Screen.SetCurPage(self.ConfirmPage)

View File

@ -84,7 +84,7 @@ func (self *ConfirmPage) Reset() {
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()