Merge Pull Request #132 into develop

master
Eugene E. Kashpureff Jr 8 years ago
commit 7832e5083e
  1. 3
      libresonic-main/src/main/java/org/libresonic/player/domain/PlayQueue.java

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

Loading…
Cancel
Save