WIP: playlists.py refactor

Tracks are bold on import
This commit is contained in:
Keith Edmunds 2023-02-19 21:22:04 +00:00
parent 6de95573ff
commit 2cd49b5898
2 changed files with 3 additions and 2 deletions

View File

@ -931,8 +931,6 @@ class Window(QMainWindow, Ui_MainWindow):
""" """
self.statusbar.showMessage("Imports complete") self.statusbar.showMessage("Imports complete")
with Session() as session:
playlist_tab.update_display(session)
def insert_header(self) -> None: def insert_header(self) -> None:
"""Show dialog box to enter header text and add to playlist""" """Show dialog box to enter header text and add to playlist"""

View File

@ -693,6 +693,9 @@ class PlaylistTab(QTableWidget):
last_played_str = get_relative_date(last_playtime) last_played_str = get_relative_date(last_playtime)
_ = self._set_item_text(row, LASTPLAYED, last_played_str) _ = self._set_item_text(row, LASTPLAYED, last_played_str)
# This is a new track so must be unplayed
self._set_row_bold(row)
else: else:
# This is a section header so it must have note text # This is a section header so it must have note text
if plr.note is None: if plr.note is None: