trigger transfer progress -1 if download is canceled
This commit is contained in:
parent
c6c032d3d9
commit
1266fb9133
2 changed files with 12 additions and 4 deletions
|
|
@ -325,6 +325,9 @@ def cancelDownloads(data):
|
|||
for l in item.lists.filter_by(user_id=settings.USER_ID):
|
||||
l.items.remove(item)
|
||||
item.update()
|
||||
trigger_event('transfer', {
|
||||
'id': item.id, 'progress': -1
|
||||
})
|
||||
response = {'cancelled': ids}
|
||||
return response
|
||||
actions.register(cancelDownloads, cache=False)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue