Reset colours for each track on update_display
This commit is contained in:
parent
1bae79265d
commit
16b9ac19f0
@ -974,6 +974,9 @@ class PlaylistTab(QTableWidget):
|
||||
track = session.get(Tracks, track_id)
|
||||
|
||||
if track:
|
||||
# Reset colour in case it was current/next/unplayable
|
||||
self._set_row_colour(row, None)
|
||||
|
||||
# Render unplayable tracks in correct colour
|
||||
if not file_is_readable(track.path):
|
||||
self._set_row_colour(row, QColor(Config.COLOUR_UNREADABLE))
|
||||
@ -1037,10 +1040,6 @@ class PlaylistTab(QTableWidget):
|
||||
self._set_row_bold(row)
|
||||
continue
|
||||
|
||||
# This is a track row other than next or current
|
||||
# Reset colour in case it was current/next
|
||||
self._set_row_colour(row, None)
|
||||
|
||||
if row in played:
|
||||
# Played today, so update last played column
|
||||
self.item(row, columns['lastplayed'].idx).setText(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user