Add shuffle and repeat controls with end-of-playlist fix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user