fix: select the requested track after queue end
This commit is contained in:
2 files changed
+12
-1
No files matched your search
@@ -394,7 +394,7 @@ class MusicPlayer:
|
||||
index = state.index if state.index != -1 else 0
|
||||
|
||||
if not advance:
|
||||
if 0 <= index < len(state.queue) and state.current is not None:
|
||||
if 0 <= index < len(state.queue):
|
||||
return index
|
||||
return len(state.queue) - 1
|
||||
|
||||
|
||||
Reference in new issue
Block a user