Fix UI desync when having playlists of 0 tracks
This commit is contained in:
		
							parent
							
								
									03d3a7dfc3
								
							
						
					
					
						commit
						0ecd03e114
					
				| @ -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 | ||||
|  | ||||
| @ -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 | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user