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:
committed by
Henrik Friedrichsen
parent
f292b939b3
commit
363e71242a
@@ -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>) {
|
||||
|
||||
Reference in New Issue
Block a user