forked from Wobbl/Wobuzz
Fixed the issue that the progress timer was further than the playback when you pause too often.
This commit is contained in:
parent
096415fe22
commit
bd0fd769d9
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/python3
|
||||
|
||||
from PyQt6.QtCore import QTimer
|
||||
from PyQt6.QtCore import Qt, QTimer
|
||||
|
||||
|
||||
class TrackProgress:
|
||||
|
@ -10,6 +10,7 @@ class TrackProgress:
|
|||
self.remaining_time = 0
|
||||
|
||||
self.timer = QTimer()
|
||||
self.timer.setTimerType(Qt.TimerType.PreciseTimer)
|
||||
self.timer.timeout.connect(self.track_finished)
|
||||
self.timer.setSingleShot(True)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue