def Click(self):
        if self._PsIndex > len(self._MyList) -1:
```
* use this to avoid PsIndex out of the range of self._MyList

* download games and showed up
This commit is contained in:
cuu
2019-12-05 17:20:38 +08:00
parent 2bb22f3914
commit 85d67dc218
2 changed files with 42 additions and 26 deletions

View File

@@ -152,7 +152,7 @@ class GPUDriverPage(Page):
self._Scroller.SetCanvasHWND(self._HWND)
def Click(self):
if len(self._MyList) == 0:
if self._PsIndex > len(self._MyList) -1:
return
cur_li = self._MyList[self._PsIndex]