From dcab21bdde20e5a37e28006c46057fec0e4524e9 Mon Sep 17 00:00:00 2001 From: Keith Edmunds Date: Fri, 14 Jul 2023 17:14:35 +0100 Subject: [PATCH] Reset preview button if preview track ends Fixes #178 --- app/musicmuster.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/musicmuster.py b/app/musicmuster.py index d90644b..a1f5745 100755 --- a/app/musicmuster.py +++ b/app/musicmuster.py @@ -1708,6 +1708,9 @@ class Window(QMainWindow, Ui_MainWindow): Called every 1000ms """ + # Ensure preview button is reset if preview finishes playing + self.btnPreview.setChecked(mixer.music.get_busy()) + # Only update play clocks once a second so that their updates # are synchronised (otherwise it looks odd)