From 8b641cd72883ab66b69d99ac0525712dadff0beb Mon Sep 17 00:00:00 2001 From: Keith Edmunds Date: Sat, 11 Sep 2021 16:53:00 +0100 Subject: [PATCH] Fix last track going blank Fixes: #68 --- app/musicmuster.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/musicmuster.py b/app/musicmuster.py index ad1df2a..c566e8e 100755 --- a/app/musicmuster.py +++ b/app/musicmuster.py @@ -265,7 +265,8 @@ class Window(QMainWindow, Ui_MainWindow): self.playing = False # Clean up metadata - self.previous_track = self.current_track + if self.current_track: + self.previous_track = self.current_track if self.current_track_playlist_tab: self.current_track_playlist_tab.play_stopped() self.current_track_playlist_tab.clear_current()