diff options
-rw-r--r-- | ui.js | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/ui.js b/ui.js index 98efd96..0a722ea 100644 --- a/ui.js +++ b/ui.js @@ -127,10 +127,8 @@ class AppElement extends FocusElement { item = {items: shuffleArray(flattenGrouplike(item).items)} } - let afterItem - if (where === 'end') { - afterItem = null - } else { + let afterItem = null + if (where === 'next') { afterItem = this.playingTrack } @@ -528,14 +526,6 @@ class AppElement extends FocusElement { this.queueListingElement.buildItems() } - shuffleQueueGrouplikeItem(item, ...rest) { - if (!isGroup(item)) { - return this.queueGrouplikeItem(item) - } - - return this.queueGrouplikeItem({items: shuffleArray(flattenGrouplike(item).items)}, ...rest) - } - async downloadGrouplikeItem(item) { if (isGroup(item)) { // TODO: Download all children (recursively), show a confirmation prompt |