Use better name for the method that closes deleted buffers

co-authored-by: Max <max@zed.dev>
This commit is contained in:
Kirill Bulatov 2023-05-19 21:47:00 +03:00
parent 583b15badc
commit 2c8fffc4f8
2 changed files with 4 additions and 2 deletions

View File

@ -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<Pane>,

View File

@ -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)
});
}
}