Browse Source

bux fix,list index out of range

cuu 4 years ago
parent
commit
2f263ff707

+ 1 - 0
Menu/GameShell/97_Music Player/music_lib_list_page.py

@@ -196,6 +196,7 @@ class MusicLibListPage(Page):
         self._Scroller.Init()
         
     def Click(self):
+        self.RefreshPsIndex()
         if len(self._MyList) == 0:
             return
         

+ 2 - 1
Menu/GameShell/97_Music Player/play_list_page.py

@@ -235,9 +235,10 @@ class PlayListPage(Page):
                         self._MyList[i]._PosY += self._Scrolled * self._MyList[i]._Height
             
     def Click(self):
+        self.RefreshPsIndex()
         if len(self._MyList) == 0:
             return
-        
+         
         cur_li = self._MyList[self._PsIndex]
         play_pos_id = myvars.Poller.play(self._PsIndex)