Prepare for external file drop in pane
This commit is contained in:
parent
dc7f9bbc54
commit
8ff05c6a72
8 changed files with 63 additions and 28 deletions
|
@ -1673,10 +1673,7 @@ extern "C" fn dragging_entered(this: &Object, _: Sel, dragging_info: id) -> NSDr
|
|||
if send_new_event(&window_state, {
|
||||
let position = drag_event_position(&window_state, dragging_info);
|
||||
let paths = external_paths_from_event(dragging_info);
|
||||
InputEvent::FileDrop(FileDropEvent::Entered {
|
||||
position,
|
||||
files: paths,
|
||||
})
|
||||
InputEvent::FileDrop(FileDropEvent::Entered { position, paths })
|
||||
}) {
|
||||
NSDragOperationCopy
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue