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:
parent
2cd49b5898
commit
c14f03f0c1
@ -1251,14 +1251,16 @@ class Window(QMainWindow, Ui_MainWindow):
|
|||||||
self.disable_play_next_controls()
|
self.disable_play_next_controls()
|
||||||
|
|
||||||
# If previous track playlist is showing and that's not the
|
# If previous track playlist is showing and that's not the
|
||||||
# current track playlist, we need to update the display to
|
# current track playlist, we need to reset the current track
|
||||||
# reset the current track highlighting
|
# highlighting
|
||||||
if (
|
if (
|
||||||
self.previous_track.playlist_tab == self.visible_playlist_tab()
|
self.previous_track.playlist_tab == self.visible_playlist_tab()
|
||||||
and
|
and
|
||||||
self.current_track.playlist_tab != self.visible_playlist_tab()
|
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
|
# Update headers
|
||||||
self.update_headers()
|
self.update_headers()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user