Unset preview button if there's no track to preview
This commit is contained in:
parent
52a4de0c01
commit
df265ead69
@ -1295,6 +1295,7 @@ class Window(QMainWindow, Ui_MainWindow):
|
|||||||
# Otherwise get path to next track to play
|
# Otherwise get path to next track to play
|
||||||
track_path = self.next_track.path
|
track_path = self.next_track.path
|
||||||
if not track_path:
|
if not track_path:
|
||||||
|
self.btnPreview.setChecked(False)
|
||||||
return
|
return
|
||||||
mixer.music.load(track_path)
|
mixer.music.load(track_path)
|
||||||
mixer.music.play()
|
mixer.music.play()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user