Fix #71: Move current track to to when shuffling

Signed-off-by: François-Xavier Thomas <fx.thomas@gmail.com>
master
François-Xavier Thomas 8 years ago
parent 0777333d48
commit 65c4a72291
  1. 3
      libresonic-main/src/main/java/org/libresonic/player/domain/PlayQueue.java

@ -241,7 +241,8 @@ public class PlayQueue {
MediaFile currentFile = getCurrentFile();
Collections.shuffle(files);
if (currentFile != null) {
index = files.indexOf(currentFile);
Collections.swap(files, files.indexOf(currentFile), 0);
index = 0;
}
}

Loading…
Cancel
Save