parent
c56e097f75
commit
8f51e790b5
@ -190,7 +190,13 @@ class PlaylistModel(QAbstractTableModel):
|
|||||||
|
|
||||||
# Handle entire row colouring
|
# Handle entire row colouring
|
||||||
# Header row
|
# Header row
|
||||||
if not prd.path:
|
if self.is_header_row(row):
|
||||||
|
# Check for specific header colouring
|
||||||
|
with Session() as session:
|
||||||
|
note_colour = NoteColours.get_colour(session, prd.note)
|
||||||
|
if note_colour:
|
||||||
|
return QBrush(QColor(note_colour))
|
||||||
|
else:
|
||||||
return QBrush(QColor(Config.COLOUR_NOTES_PLAYLIST))
|
return QBrush(QColor(Config.COLOUR_NOTES_PLAYLIST))
|
||||||
# Unreadable track file
|
# Unreadable track file
|
||||||
if file_is_unreadable(prd.path):
|
if file_is_unreadable(prd.path):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user