Commit b73ba4b5 authored by Anton Belka's avatar Anton Belka Committed by Vadim Rutkovsky

Restart current track when postion more than 3 seconds

https://bugzilla.gnome.org/show_bug.cgi?id=707457
parent 29a4ffc5
......@@ -435,8 +435,12 @@ class Player(GObject.GObject):
if self.prevBtn.get_sensitive() is False:
return
position = self.get_position() / 1000000;
self.stop()
self.currentTrack = self._get_previous_track()
if position < 5:
self.currentTrack = self._get_previous_track()
if self.currentTrack:
self.play()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment