WIP: playlists.py refactor

This commit is contained in:
Keith Edmunds 2023-02-24 19:31:38 +00:00
parent c14f03f0c1
commit 58ec47517d
2 changed files with 574 additions and 345 deletions

View File

@ -1546,16 +1546,10 @@ class Window(QMainWindow, Ui_MainWindow):
self.next_track.set_plr(session, plr, playlist_tab)
if self.next_track.playlist_tab:
self.next_track.playlist_tab.update_display(session)
if self.current_track.playlist_tab != self.next_track.playlist_tab:
self.set_tab_colour(self.next_track.playlist_tab,
QColor(Config.COLOUR_NEXT_TAB))
# If we've changed playlist tabs for next track, refresh old one
# to remove highligting of next track
if original_next_track_playlist_tab:
original_next_track_playlist_tab.update_display(session)
# Populate footer if we're not currently playing
if not self.playing and self.next_track.track_id:
self.label_track_length.setText(

File diff suppressed because it is too large Load Diff