Fix UI desync when having playlists of 0 tracks

This commit is contained in:
RemixDev 2021-07-27 12:46:16 +02:00
parent 03d3a7dfc3
commit 0ecd03e114
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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