reset tick

This commit is contained in:
j 2024-04-04 23:37:29 +01:00
parent 3c9f200fdd
commit 1ac5574bfc

View file

@ -192,6 +192,7 @@ class Sync(Thread):
if args[0] != 'd-': if args[0] != 'd-':
return return
self.is_paused = False self.is_paused = False
self._tick = 0
self.mpv.pause = False self.mpv.pause = False
if self.sax: if self.sax:
self.sax.pause = False self.sax.pause = False
@ -312,6 +313,7 @@ class Sync(Thread):
self.mpv.pause = True self.mpv.pause = True
elif data[0] == "play": elif data[0] == "play":
self.is_paused = False self.is_paused = False
self._tick = 0
self.mpv.pause = False self.mpv.pause = False
else: else:
self.main.time_pos = float(data[0]) self.main.time_pos = float(data[0])