Fix folder expand when dropped on itself in project_panel (#20365)
Closes #13093 Release Notes: - Fixed folder expand when dropped on itself in project_panel
This commit is contained in:
parent
2c4984091c
commit
f924c3ef00
1 changed files with 4 additions and 0 deletions
|
@ -1703,6 +1703,10 @@ impl ProjectPanel {
|
||||||
destination_is_file: bool,
|
destination_is_file: bool,
|
||||||
cx: &mut ViewContext<Self>,
|
cx: &mut ViewContext<Self>,
|
||||||
) {
|
) {
|
||||||
|
if entry_to_move == destination {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
let destination_worktree = self.project.update(cx, |project, cx| {
|
let destination_worktree = self.project.update(cx, |project, cx| {
|
||||||
let entry_path = project.path_for_entry(entry_to_move, cx)?;
|
let entry_path = project.path_for_entry(entry_to_move, cx)?;
|
||||||
let destination_entry_path = project.path_for_entry(destination, cx)?.path.clone();
|
let destination_entry_path = project.path_for_entry(destination, cx)?.path.clone();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue