Add back Shuffle All and fix Play All

This commit is contained in:
Arkadiusz Fal
2022-09-04 17:23:02 +02:00
parent 1744210615
commit 14b0316724
5 changed files with 29 additions and 4 deletions

View File

@@ -299,13 +299,21 @@ struct PlaylistsView: View {
private var playButton: some View {
Button {
player.playbackMode = .queue
player.play(items.compactMap(\.video))
} label: {
Image(systemName: "play")
.padding(8)
.contentShape(Rectangle())
}
.contextMenu {
Button {
player.play(items.compactMap(\.video), shuffling: true)
} label: {
Label("Shuffle", systemImage: "shuffle")
.padding(8)
.contentShape(Rectangle())
}
}
}
private var currentPlaylist: Playlist? {