Add shuffle and repeat controls with end-of-playlist fix

This commit is contained in:
Maksim Totmin
2026-06-01 20:32:56 +07:00
parent aaaf354c9d
commit 8861e55f32
4 changed files with 114 additions and 4 deletions
+7
View File
@@ -256,6 +256,13 @@ class LibraryTab(QWidget):
layout.addLayout(toolbar)
def playable_row_indices(self) -> list[int]:
indices = []
for row in range(self.library_table.rowCount()):
if not self.library_table.isRowHidden(row):
indices.append(row)
return indices
def play_track_at_index(self, index: int, start_position_ms: int = 0, auto_play: bool = True):
if index < 0 or index >= self.library_table.rowCount():
return