@@ -24,6 +24,7 @@ def __init__(self, *args, **kwargs):
24
24
self .video = kwargs .get ('video' )
25
25
self .viaOSD = kwargs .get ('via_osd' )
26
26
self .nonPlayback = kwargs .get ('non_playback' )
27
+ self .roundRobin = kwargs .get ('round_robin' , True )
27
28
self .lastSelectedItem = 0
28
29
29
30
if not self .video .mediaChoice :
@@ -46,7 +47,8 @@ def onAction(self, action):
46
47
except :
47
48
util .ERROR ()
48
49
49
- if action in (xbmcgui .ACTION_MOVE_UP , xbmcgui .ACTION_MOVE_DOWN ) and self .getFocusId () == self .SETTINGS_LIST_ID :
50
+ if self .roundRobin and action in (xbmcgui .ACTION_MOVE_UP , xbmcgui .ACTION_MOVE_DOWN ) and \
51
+ self .getFocusId () == self .SETTINGS_LIST_ID :
50
52
to_pos = None
51
53
last_index = self .settingsList .size () - 1
52
54
if action == xbmcgui .ACTION_MOVE_UP and self .lastSelectedItem == 0 and self .settingsList .topHasFocus ():
@@ -179,6 +181,7 @@ def __init__(self, *args, **kwargs):
179
181
self .choice = None
180
182
self .nonPlayback = kwargs .get ('non_playback' )
181
183
self .lastSelectedItem = self .selectedIdx if self .selectedIdx is not None else 0
184
+ self .roundRobin = kwargs .get ('round_robin' , True )
182
185
183
186
def onFirstInit (self ):
184
187
self .optionsList = kodigui .ManagedControlList (self , self .OPTIONS_LIST_ID , 8 )
@@ -194,7 +197,8 @@ def onAction(self, action):
194
197
except :
195
198
util .ERROR ()
196
199
197
- if action in (xbmcgui .ACTION_MOVE_UP , xbmcgui .ACTION_MOVE_DOWN ) and self .getFocusId () == self .OPTIONS_LIST_ID :
200
+ if self .roundRobin and action in (xbmcgui .ACTION_MOVE_UP , xbmcgui .ACTION_MOVE_DOWN ) and \
201
+ self .getFocusId () == self .OPTIONS_LIST_ID :
198
202
to_pos = None
199
203
last_index = self .optionsList .size () - 1
200
204
0 commit comments