mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-17 22:14:53 +02:00
...
This commit is contained in:
@@ -449,6 +449,9 @@ func (dnd *dnd) end_drop(success bool) {
|
|||||||
if dnd.drop_status.reading_data {
|
if dnd.drop_status.reading_data {
|
||||||
dnd.lp.QueueDnDData(DC{
|
dnd.lp.QueueDnDData(DC{
|
||||||
Type: 'r', Operation: utils.IfElse(success, dnd.drop_status.action, 0)}) // end drop
|
Type: 'r', Operation: utils.IfElse(success, dnd.drop_status.action, 0)}) // end drop
|
||||||
|
if success && dnd.drop_status.action == 2 && !dnd.drop_status.is_remote_client {
|
||||||
|
// TODO: delete all dropped files/dirs/symlinks after successful move
|
||||||
|
}
|
||||||
}
|
}
|
||||||
dnd.reset_drop()
|
dnd.reset_drop()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user