mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-10 22:24:24 +02:00
Clear remote_item_write_id on completion
Needed as send next remote item checks it is zero before sending
This commit is contained in:
@@ -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 id == dnd.drag_status.remote_item_write_id {
|
||||||
if dnd.drag_status.current_remote_file != nil {
|
dnd.drag_status.remote_item_write_id = 0
|
||||||
err = dnd.send_next_file_chunk()
|
err = dnd.send_next_file_chunk()
|
||||||
} else {
|
|
||||||
err = dnd.next_remote_item()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user