Fix a bug where playlist media counts where being overwritten with stale data.

This commit is contained in:
Jonathan Bernard 2016-06-01 11:29:39 -05:00
parent aa640bb4f9
commit cbf01b4d73

View File

@ -672,7 +672,7 @@ Configuration:
if (selection) { if (selection) {
List<MediaFile> mediaFiles = library.collectMediaFiles(selection) List<MediaFile> mediaFiles = library.collectMediaFiles(selection)
playQueue = library.removeAllFromPlaylist(playQueue.id) playQueue = library.removeAllFromPlaylist(playQueue.id)
library.addToPlaylist(playQueue.id, mediaFiles.collect { it.id }) playQueue = library.addToPlaylist(playQueue.id, mediaFiles.collect { it.id })
setPlayQueue(playQueue) } setPlayQueue(playQueue) }
vlcj.mediaListPlayer.play() vlcj.mediaListPlayer.play()