Save playlist after undoing sort

This commit is contained in:
Keith Edmunds 2023-10-12 18:44:01 +01:00
parent c8a7ae7f73
commit 8cebf7829b

View File

@ -2344,6 +2344,11 @@ class PlaylistTab(QTableWidget):
# Reset drag mode to allow row selection by dragging # Reset drag mode to allow row selection by dragging
self.setDragEnabled(False) self.setDragEnabled(False)
# Save playlist
with Session() as session:
self.save_playlist(session)
self._update_start_end_times(session)
def _track_time_between_rows( def _track_time_between_rows(
self, session: scoped_session, from_plr: PlaylistRows, to_plr: PlaylistRows self, session: scoped_session, from_plr: PlaylistRows, to_plr: PlaylistRows
) -> int: ) -> int: