Fix bug that added row number to notes of imported tracks

This commit is contained in:
Keith Edmunds 2023-11-03 08:18:24 +00:00
parent 2db407edc5
commit 405efee732
2 changed files with 3 additions and 3 deletions

View File

@ -223,7 +223,7 @@ class ImportTrack(QObject):
print(e)
return
helpers.normalise_track(track.path)
self.playlist.insert_track(session, track, target_row)
self.playlist.insert_track(session=session, track=track, target_row=target_row)
# Insert next row under this one
target_row += 1
# We're importing potentially multiple tracks in a loop.

View File

@ -652,8 +652,8 @@ class PlaylistTab(QTableWidget):
self,
session: scoped_session,
track: Tracks,
note: str = "",
repaint: bool = True,
note: Optional[str] = "",
repaint: Optional[bool] = True,
target_row: Optional[int] = None,
) -> None:
"""