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

Restart current track when postion more than 3 seconds
parent 29a4ffc5
......@@ -435,8 +435,12 @@ class Player(GObject.GObject):
if self.prevBtn.get_sensitive() is False:
position = self.get_position() / 1000000;
self.currentTrack = self._get_previous_track()
if position < 5:
self.currentTrack = self._get_previous_track()
if self.currentTrack:
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