From 2cd49b5898bdf2347410fb8904c9aceaa4f5c543 Mon Sep 17 00:00:00 2001 From: Keith Edmunds Date: Sun, 19 Feb 2023 21:22:04 +0000 Subject: [PATCH] WIP: playlists.py refactor Tracks are bold on import --- app/musicmuster.py | 2 -- app/playlists.py | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/musicmuster.py b/app/musicmuster.py index 7dfc96f..fd22294 100755 --- a/app/musicmuster.py +++ b/app/musicmuster.py @@ -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""" diff --git a/app/playlists.py b/app/playlists.py index c99c768..c7ebae5 100644 --- a/app/playlists.py +++ b/app/playlists.py @@ -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: