slider drag fix
This commit is contained in:
parent
76b1e13cf1
commit
232d782cc3
3
new.py
3
new.py
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user