mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2025-12-12 16:08:52 +01:00
Emulator fav_list bug fix
This commit is contained in:
parent
ced5ed5440
commit
860b246d94
@ -55,6 +55,11 @@ func NewFavListPage() *FavListPage {
|
|||||||
|
|
||||||
return p
|
return p
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (self *FavListPage) GetMyList() []UI.ListItemInterface {
|
||||||
|
return self.MyList
|
||||||
|
}
|
||||||
|
|
||||||
func (self *FavListPage) GetMapIcons() map[string]UI.IconItemInterface {
|
func (self *FavListPage) GetMapIcons() map[string]UI.IconItemInterface {
|
||||||
return self.Icons
|
return self.Icons
|
||||||
}
|
}
|
||||||
@ -385,6 +390,7 @@ func (self *FavListPage) Click() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (self *FavListPage) ReScan() {
|
func (self *FavListPage) ReScan() {
|
||||||
|
//fmt.Println("FavListPage ReScan ",self.EmulatorConfig.ROM)
|
||||||
if self.MyStack.Length() == 0 {
|
if self.MyStack.Length() == 0 {
|
||||||
self.SyncList(self.EmulatorConfig.ROM)
|
self.SyncList(self.EmulatorConfig.ROM)
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
@ -416,7 +416,7 @@ func (self *RomListPage) Click() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (self *RomListPage) ReScan() {
|
func (self *RomListPage) ReScan() {
|
||||||
fmt.Println("RomListPage ReScan ",self.EmulatorConfig.ROM)
|
//fmt.Println("RomListPage ReScan ",self.EmulatorConfig.ROM)
|
||||||
if self.MyStack.Length() == 0 {
|
if self.MyStack.Length() == 0 {
|
||||||
self.SyncList(self.EmulatorConfig.ROM)
|
self.SyncList(self.EmulatorConfig.ROM)
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
@ -126,12 +126,12 @@ func (self *DownloadProcessPage) UpdateProcessInterval() {
|
|||||||
// download is complete
|
// download is complete
|
||||||
fmt.Println("download is complete ",self.Value)
|
fmt.Println("download is complete ",self.Value)
|
||||||
self.Value = 0
|
self.Value = 0
|
||||||
|
self.TheTicker.Stop()
|
||||||
|
goto OUT
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
OUT:
|
||||||
if err := self.resp.Err(); err != nil {
|
if err := self.resp.Err(); err != nil {
|
||||||
self.DownloadErr()
|
self.DownloadErr()
|
||||||
fmt.Fprintf(os.Stderr, "Download failed: %v\n", err)
|
fmt.Fprintf(os.Stderr, "Download failed: %v\n", err)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user