Compare commits

..

No commits in common. "d9abf72f6ac7a0f2a1a9ff9b00a628f3061dd43a" and "b9cb7cc3264a24be6462ac1d9864f49f39dbb93a" have entirely different histories.

3 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,6 @@ class Config(object):
PREVIEW_BACK_MS = 5000
PREVIEW_END_BUFFER_MS = 1000
REPLACE_FILES_DEFAULT_SOURCE = "/home/kae/music/Singles/tmp"
RESIZE_ROW_CHUNK_SIZE = 40
RETURN_KEY_DEBOUNCE_MS = 1000
ROOT = os.environ.get("ROOT") or "/home/kae/music"
ROW_PADDING = 4

View File

@ -124,6 +124,7 @@ class PlaylistModel(QAbstractTableModel):
for ts in [
track_sequence.next,
track_sequence.current,
track_sequence.previous,
]:
if ts and ts.row_number == row_number and ts.playlist_id == self.playlist_id:
break

View File

@ -941,7 +941,7 @@ class PlaylistTab(QTableView):
QTimer.singleShot(0, lambda: resize_row(row, count))
# Start resizing from row 0, 10 rows at a time
QTimer.singleShot(0, lambda: resize_row(0, Config.RESIZE_ROW_CHUNK_SIZE))
QTimer.singleShot(0, lambda: resize_row(0, 10))
def scroll_to_top(self, row_number: int) -> None:
"""