From 8cebf7829b5ca7e581b60813c2a4a361666b5161 Mon Sep 17 00:00:00 2001 From: Keith Edmunds Date: Thu, 12 Oct 2023 18:44:01 +0100 Subject: [PATCH] Save playlist after undoing sort --- app/playlists.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/playlists.py b/app/playlists.py index ee93595..b350038 100644 --- a/app/playlists.py +++ b/app/playlists.py @@ -2344,6 +2344,11 @@ class PlaylistTab(QTableWidget): # Reset drag mode to allow row selection by dragging self.setDragEnabled(False) + # Save playlist + with Session() as session: + self.save_playlist(session) + self._update_start_end_times(session) + def _track_time_between_rows( self, session: scoped_session, from_plr: PlaylistRows, to_plr: PlaylistRows ) -> int: