playback: fix play song by itself

Accidental misup led to it playing from all songs instead
This commit is contained in:
Alexander Capehart 2024-06-08 19:21:06 -06:00
parent c4a3d52903
commit 643defd9e4
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47

View file

@ -91,7 +91,8 @@ constructor(
override val shuffled: Boolean
) : PlaybackCommand
override fun song(song: Song, shuffle: ShuffleMode) = newCommand(song, shuffle)
override fun song(song: Song, shuffle: ShuffleMode) =
newCommand(song, null, listOf(song), shuffle)
override fun songFromAll(song: Song, shuffle: ShuffleMode) = newCommand(song, shuffle)
@ -105,7 +106,7 @@ constructor(
newCommand(song, genre, song.genres, listSettings.genreSongSort, shuffle)
override fun songFromPlaylist(song: Song, playlist: Playlist, shuffle: ShuffleMode) =
newCommand(song, playlist, playlist.songs, listSettings.playlistSort, shuffle)
newCommand(song, playlist, playlist.songs, shuffle)
override fun all(shuffle: ShuffleMode) = newCommand(null, shuffle)