Made download cancelling process more clear

This commit is contained in:
RemixDev
2020-04-14 19:14:17 +02:00
parent c75e6a8e9e
commit bc0233790a
2 changed files with 6 additions and 1 deletions

View File

@ -642,6 +642,7 @@ def download(dz, queueItem, socket=None):
download_path = after_download(playlist, settings, queueItem)
if socket:
if 'cancel' in queueItem:
socket.emit('toast', {'msg': "Current item cancelled.", 'icon':'done', 'dismiss': True, 'id':'cancelling_'+queueItem['uuid']})
socket.emit("removedFromQueue", queueItem['uuid'])
else:
socket.emit("finishDownload", queueItem['uuid'])