Enable dragging from project panel to panes
Rework gpui2 drag API so that receivers need not specify the dragged view type. co-authored-by: Max <max@zed.dev> co-authored-by: Conrad <conrad@zed.dev>
This commit is contained in:
parent
c6e44683e6
commit
8791f7cefc
9 changed files with 190 additions and 100 deletions
|
@ -792,7 +792,6 @@ impl Element for TerminalElement {
|
|||
.on_drop::<ExternalPaths>(move |external_paths, cx| {
|
||||
cx.focus(&terminal_focus_handle);
|
||||
let mut new_text = external_paths
|
||||
.read(cx)
|
||||
.paths()
|
||||
.iter()
|
||||
.map(|path| format!(" {path:?}"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue