Browse Source

Emulator fav_list bug fix

cuu 5 years ago
parent
commit
860b246d94

+ 6 - 0
sysgo/UI/Emulator/fav_list_page.go

@@ -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{

+ 1 - 1
sysgo/UI/Emulator/rom_list_page.go

@@ -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{

+ 3 - 3
sysgo/UI/download_process_page.go

@@ -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)