Fixed icon not changing after download finished

This commit is contained in:
RemixDev 2020-04-13 19:52:38 +02:00
parent cc3981bbee
commit b587cf5072
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ socket.on("finishDownload", function(uuid){
console.log(uuid+" finished downloading")
toast(`${queueList[uuid].title} finished downloading.`)
$('#bar_' + uuid).css('width', '100%')
let result_icon = $('download_'+uuid).find('.queue_icon')
let result_icon = $('#download_'+uuid).find('.queue_icon')
if (queueList[uuid].failed == 0){
result_icon.text("done")
}else if (queueList[uuid].failed >= queueList[uuid].size){