From c14f03f0c12cb7ac623da96f01b845fbfb2951bb Mon Sep 17 00:00:00 2001 From: Keith Edmunds Date: Sun, 19 Feb 2023 21:31:06 +0000 Subject: [PATCH] WIP: playlists.py refactor Reset colour of current track when it has finished and is on a different tab to the next track. --- app/musicmuster.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/musicmuster.py b/app/musicmuster.py index fd22294..e9db2df 100755 --- a/app/musicmuster.py +++ b/app/musicmuster.py @@ -1251,14 +1251,16 @@ class Window(QMainWindow, Ui_MainWindow): self.disable_play_next_controls() # If previous track playlist is showing and that's not the - # current track playlist, we need to update the display to - # reset the current track highlighting + # current track playlist, we need to reset the current track + # highlighting if ( self.previous_track.playlist_tab == self.visible_playlist_tab() and self.current_track.playlist_tab != self.visible_playlist_tab() + and self.previous_track.plr_id ): - self.visible_playlist_tab().update_display(session) + self.previous_track.playlist_tab.reset_plr_row_colour( + self.previous_track.plr_id) # Update headers self.update_headers()