Fix current track highligting when starting track on another playlist

This commit is contained in:
Keith Edmunds 2023-01-01 18:27:41 +00:00
parent 046b689882
commit 4870647387

View File

@ -1092,6 +1092,16 @@ class Window(QMainWindow, Ui_MainWindow):
# Disable play next controls
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
if (
self.previous_track.playlist_tab == self.visible_playlist_tab()
and
self.current_track.playlist_tab != self.visible_playlist_tab()
):
self.visible_playlist_tab().update_display(session)
# Update headers
self.update_headers()