WIP: playlists.py refactor
This commit is contained in:
parent
c14f03f0c1
commit
58ec47517d
@ -1546,16 +1546,10 @@ class Window(QMainWindow, Ui_MainWindow):
|
|||||||
|
|
||||||
self.next_track.set_plr(session, plr, playlist_tab)
|
self.next_track.set_plr(session, plr, playlist_tab)
|
||||||
if self.next_track.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:
|
if self.current_track.playlist_tab != self.next_track.playlist_tab:
|
||||||
self.set_tab_colour(self.next_track.playlist_tab,
|
self.set_tab_colour(self.next_track.playlist_tab,
|
||||||
QColor(Config.COLOUR_NEXT_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
|
# Populate footer if we're not currently playing
|
||||||
if not self.playing and self.next_track.track_id:
|
if not self.playing and self.next_track.track_id:
|
||||||
self.label_track_length.setText(
|
self.label_track_length.setText(
|
||||||
|
|||||||
903
app/playlists.py
903
app/playlists.py
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user