From 1a4f842f1f159ce35a8b332c575007c84f4344d6 Mon Sep 17 00:00:00 2001 From: Keith Edmunds Date: Sun, 26 Sep 2021 08:47:00 +0100 Subject: [PATCH] Set last played time when playing track Fixes #83 --- app/playlists.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/playlists.py b/app/playlists.py index b378554..43369dc 100644 --- a/app/playlists.py +++ b/app/playlists.py @@ -1051,6 +1051,10 @@ class PlaylistTab(QTableWidget): # Set start time self._set_row_start_time( row, self.current_track_start_time) + last_played_str = get_relative_date( + self.current_track_start_time) + self.item(row, self.COL_LAST_PLAYED).setText( + last_played_str) # Calculate next_start_time next_start_time = self._calculate_next_start_time( session, row, self.current_track_start_time)