Set last played time when playing track

Fixes #83
This commit is contained in:
Keith Edmunds 2021-09-26 08:47:00 +01:00
parent 69dd0235a0
commit 1a4f842f1f

View File

@ -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)