WIP: playlists.py refactor
Tracks are bold on import
This commit is contained in:
parent
6de95573ff
commit
2cd49b5898
@ -931,8 +931,6 @@ class Window(QMainWindow, Ui_MainWindow):
|
||||
"""
|
||||
|
||||
self.statusbar.showMessage("Imports complete")
|
||||
with Session() as session:
|
||||
playlist_tab.update_display(session)
|
||||
|
||||
def insert_header(self) -> None:
|
||||
"""Show dialog box to enter header text and add to playlist"""
|
||||
|
||||
@ -693,6 +693,9 @@ class PlaylistTab(QTableWidget):
|
||||
last_played_str = get_relative_date(last_playtime)
|
||||
_ = self._set_item_text(row, LASTPLAYED, last_played_str)
|
||||
|
||||
# This is a new track so must be unplayed
|
||||
self._set_row_bold(row)
|
||||
|
||||
else:
|
||||
# This is a section header so it must have note text
|
||||
if plr.note is None:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user