Emulator fav_list bug fix

This commit is contained in:
cuu 2018-12-12 14:53:31 +08:00
parent ced5ed5440
commit 860b246d94
3 changed files with 10 additions and 4 deletions

View File

@ -55,6 +55,11 @@ func NewFavListPage() *FavListPage {
return p
}
func (self *FavListPage) GetMyList() []UI.ListItemInterface {
return self.MyList
}
func (self *FavListPage) GetMapIcons() map[string]UI.IconItemInterface {
return self.Icons
}
@ -385,6 +390,7 @@ func (self *FavListPage) Click() {
}
func (self *FavListPage) ReScan() {
//fmt.Println("FavListPage ReScan ",self.EmulatorConfig.ROM)
if self.MyStack.Length() == 0 {
self.SyncList(self.EmulatorConfig.ROM)
}else{

View File

@ -416,7 +416,7 @@ func (self *RomListPage) Click() {
}
func (self *RomListPage) ReScan() {
fmt.Println("RomListPage ReScan ",self.EmulatorConfig.ROM)
//fmt.Println("RomListPage ReScan ",self.EmulatorConfig.ROM)
if self.MyStack.Length() == 0 {
self.SyncList(self.EmulatorConfig.ROM)
}else{

View File

@ -126,12 +126,12 @@ func (self *DownloadProcessPage) UpdateProcessInterval() {
// download is complete
fmt.Println("download is complete ",self.Value)
self.Value = 0
self.TheTicker.Stop()
goto OUT
break
}
}
OUT:
if err := self.resp.Err(); err != nil {
self.DownloadErr()
fmt.Fprintf(os.Stderr, "Download failed: %v\n", err)