Save sorted selection
This commit is contained in:
parent
8e2edb6af3
commit
06e457a3da
@ -2270,7 +2270,6 @@ class PlaylistTab(QTableWidget):
|
|||||||
sort_item = self.item(index.row(), sort_column)
|
sort_item = self.item(index.row(), sort_column)
|
||||||
if sort_item:
|
if sort_item:
|
||||||
sorted_rows.append((index.row(), sort_item.text()))
|
sorted_rows.append((index.row(), sort_item.text()))
|
||||||
print(f"{sort_item.text()=}")
|
|
||||||
|
|
||||||
# Sort the list
|
# Sort the list
|
||||||
sorted_rows.sort(key=lambda row: row[1])
|
sorted_rows.sort(key=lambda row: row[1])
|
||||||
@ -2289,9 +2288,9 @@ class PlaylistTab(QTableWidget):
|
|||||||
self.removeRow(i.row())
|
self.removeRow(i.row())
|
||||||
|
|
||||||
# Save playlist
|
# Save playlist
|
||||||
# with Session() as session:
|
with Session() as session:
|
||||||
# self.save_playlist(session)
|
self.save_playlist(session)
|
||||||
# self._update_start_end_times(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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user