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

View File

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