playback: fix play song by itself
Accidental misup led to it playing from all songs instead
This commit is contained in:
parent
c4a3d52903
commit
643defd9e4
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue