thread_view: Fix issues with images (#36509)
- Clean up failed load tasks for mentions that require async processing - When dragging and dropping files, hold onto added worktrees until any async processing has completed; this fixes a bug when dragging items from outside the project Release Notes: - N/A
This commit is contained in:
parent
a91acb5f41
commit
df9c2aefb1
3 changed files with 85 additions and 61 deletions
|
@ -3429,8 +3429,7 @@ impl AcpThreadView {
|
|||
cx: &mut Context<Self>,
|
||||
) {
|
||||
self.message_editor.update(cx, |message_editor, cx| {
|
||||
message_editor.insert_dragged_files(paths, window, cx);
|
||||
drop(added_worktrees);
|
||||
message_editor.insert_dragged_files(paths, added_worktrees, window, cx);
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue