From 0ecd03e114c652a53573ab73e36ead182b317a8a Mon Sep 17 00:00:00 2001 From: RemixDev Date: Tue, 27 Jul 2021 12:46:16 +0200 Subject: [PATCH] Fix UI desync when having playlists of 0 tracks --- src/components/downloads/QueueItem.vue | 2 +- src/components/downloads/TheDownloadBar.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/downloads/QueueItem.vue b/src/components/downloads/QueueItem.vue index fa714da..4fe4615 100644 --- a/src/components/downloads/QueueItem.vue +++ b/src/components/downloads/QueueItem.vue @@ -64,7 +64,7 @@ export default { let allFailed = false if (this.queueItem.status === 'download finished') { - allFailed = this.queueItem.failed === this.queueItem.size + allFailed = this.queueItem.size !== 0 && this.queueItem.failed === this.queueItem.size } return allFailed diff --git a/src/components/downloads/TheDownloadBar.vue b/src/components/downloads/TheDownloadBar.vue index 372dcd4..1206546 100644 --- a/src/components/downloads/TheDownloadBar.vue +++ b/src/components/downloads/TheDownloadBar.vue @@ -350,7 +350,7 @@ export default { this.$set(this.queueList[uuid], 'status', 'downloading') }, finishDownload(uuid) { - const isInQueue = this.queue.includes(uuid) + const isInQueue = this.queue.includes(uuid) || this.queueComplete.includes(uuid) if (!isInQueue) return