Fixed error in Media player. Now it should not skip the first song if you are in the last track and pressed 'play next'

This commit is contained in:
Manuel Cortez 2019-01-22 10:29:37 -06:00
parent 1db4e10dc8
commit bab02110b0
2 changed files with 2 additions and 1 deletions

View File

@ -12,6 +12,7 @@
* Alt + Left/down arrows: Play previous and next song if playing an audios buffer.
* Control + P: Play/pause.
* control+Shift+P: Play all.
* Fixed an error in the audio player that was skipping the first track if you were in the last song and pressed "play next" in the menu bar or via the keystroke.
## Changes in version 0.18 (21.01.2019)

View File

@ -494,7 +494,7 @@ class audioBuffer(feedBuffer):
def play_next(self, *args, **kwargs):
selected = self.tab.list.get_selected()
if selected < 0 or selected == self.tab.list.get_count()-1:
if selected < 0:
selected = 0
if self.tab.list.get_count() <= selected+1:
newpos = 0