mirror of
https://github.com/clockworkpi/launcher.git
synced 2025-12-13 02:08:50 +01:00
fix fav PsIndex out of index
This commit is contained in:
parent
6289a73e20
commit
0c43b33b2a
@ -56,8 +56,7 @@ class BSlider(Slider):
|
|||||||
scale.Adjust(0,0,82,63,0)
|
scale.Adjust(0,0,82,63,0)
|
||||||
self._Icons["scale"] = scale
|
self._Icons["scale"] = scale
|
||||||
|
|
||||||
def SetValue(self,brt):#pct 0-100
|
def SetValue(self,brt):
|
||||||
|
|
||||||
self._Value = brt
|
self._Value = brt
|
||||||
|
|
||||||
def Further(self):
|
def Further(self):
|
||||||
@ -89,6 +88,7 @@ class BSlider(Slider):
|
|||||||
icon_idx = self._Value - 1
|
icon_idx = self._Value - 1
|
||||||
if icon_idx < 0:
|
if icon_idx < 0:
|
||||||
icon_idx = 0
|
icon_idx = 0
|
||||||
|
|
||||||
self._Icons["scale"]._IconIndex = icon_idx
|
self._Icons["scale"]._IconIndex = icon_idx
|
||||||
self._Icons["scale"].Draw()
|
self._Icons["scale"].Draw()
|
||||||
"""
|
"""
|
||||||
|
|||||||
@ -291,6 +291,12 @@ class FavListPage(Page):
|
|||||||
self._MyList[i]._PosY += self._Scrolled * self._MyList[i]._Height
|
self._MyList[i]._PosY += self._Scrolled * self._MyList[i]._Height
|
||||||
|
|
||||||
def Click(self):
|
def Click(self):
|
||||||
|
|
||||||
|
if len(self._MyList) == 0:
|
||||||
|
return
|
||||||
|
|
||||||
|
if self._PsIndex > len(self._MyList) - 1:
|
||||||
|
return
|
||||||
|
|
||||||
cur_li = self._MyList[self._PsIndex]
|
cur_li = self._MyList[self._PsIndex]
|
||||||
|
|
||||||
|
|||||||
@ -316,6 +316,9 @@ class RomListPage(Page):
|
|||||||
def Click(self):
|
def Click(self):
|
||||||
if len(self._MyList) == 0:
|
if len(self._MyList) == 0:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if self._PsIndex > len(self._MyList) - 1:
|
||||||
|
return
|
||||||
|
|
||||||
cur_li = self._MyList[self._PsIndex]
|
cur_li = self._MyList[self._PsIndex]
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user