Clear remote_item_write_id on completion

Needed as send next remote item checks it is zero before sending
This commit is contained in:
Kovid Goyal 2026-05-12 12:39:34 +05:30
parent 0a69b89a80
commit 2bda489698
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -332,11 +332,8 @@ func (dnd *dnd) on_send_done(id loop.IdType) (err error) {
}
}
if id == dnd.drag_status.remote_item_write_id {
if dnd.drag_status.current_remote_file != nil {
err = dnd.send_next_file_chunk()
} else {
err = dnd.next_remote_item()
}
dnd.drag_status.remote_item_write_id = 0
err = dnd.send_next_file_chunk()
}
return
}