Shuffle: Start with random track if not selecting track directly

Starting a playlist, album or artist with shuffle enabled always
starts on the first track in it and then plays the rest of the
queue shuffled.
This changes it so unless a track is picked directly, playback
will start on a random track of the selection.
This commit is contained in:
Tobias Langendorf
2020-02-20 11:11:01 +01:00
committed by Henrik Friedrichsen
parent f292b939b3
commit 363e71242a
7 changed files with 17 additions and 12 deletions

View File

@@ -174,7 +174,7 @@ impl ListItem for Track {
fn play(&mut self, queue: Arc<Queue>) {
let index = queue.append_next(vec![self]);
queue.play(index, true);
queue.play(index, true, false);
}
fn queue(&mut self, queue: Arc<Queue>) {