slider drag fix

This commit is contained in:
billypom on debian 2024-07-31 18:20:28 -04:00
parent 76b1e13cf1
commit 232d782cc3

3
new.py
View File

@ -523,6 +523,9 @@ class MainWindow(QMainWindow):
if stopped: if stopped:
return return
else: else:
if self.playbackSlider.isSliderDown():
# Prevents slider from updating when dragging
return
# Update the slider # Update the slider
if self.player.state() == QMediaPlayer.State.PlayingState: if self.player.state() == QMediaPlayer.State.PlayingState:
self.playbackSlider.setMinimum(0) self.playbackSlider.setMinimum(0)