WIP: playlists.py refactor

Reset colour of current track when it has finished and is on a
different tab to the next track.
This commit is contained in:
Keith Edmunds 2023-02-19 21:31:06 +00:00
parent 2cd49b5898
commit c14f03f0c1

View File

@ -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()