diff --git a/crates/workspace/src/pane.rs b/crates/workspace/src/pane.rs index c54f8d393b57988a8b357d207b37f4e0bf2874e3..39f1a9fd9ece29ed2128b6d2da483486e112fbc3 100644 --- a/crates/workspace/src/pane.rs +++ b/crates/workspace/src/pane.rs @@ -1305,7 +1305,7 @@ impl Pane { &self.toolbar } - pub fn delete_item( + pub fn handle_deleted_project_item( &mut self, entry_id: ProjectEntryId, cx: &mut ViewContext, diff --git a/crates/workspace/src/workspace.rs b/crates/workspace/src/workspace.rs index 11703aba6ee0395af02e959646eaa95d27f78df9..8a5ce7a105d69ef7d5feb3e8a2cd9f9d39dbd28a 100644 --- a/crates/workspace/src/workspace.rs +++ b/crates/workspace/src/workspace.rs @@ -539,7 +539,9 @@ impl Workspace { project::Event::DeletedEntry(entry_id) => { for pane in this.panes.iter() { - pane.update(cx, |pane, cx| pane.delete_item(*entry_id, cx)); + pane.update(cx, |pane, cx| { + pane.handle_deleted_project_item(*entry_id, cx) + }); } }