From bd0fd769d9c10d71adc84d8e0f456d2e31e118fc Mon Sep 17 00:00:00 2001 From: EKNr1 Date: Fri, 24 Jan 2025 14:13:23 +0100 Subject: [PATCH] Fixed the issue that the progress timer was further than the playback when you pause too often. --- wobuzz/player/track_progress_timer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wobuzz/player/track_progress_timer.py b/wobuzz/player/track_progress_timer.py index c8bfdf5..81e429a 100644 --- a/wobuzz/player/track_progress_timer.py +++ b/wobuzz/player/track_progress_timer.py @@ -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)