mirror of
https://github.com/zed-industries/zed.git
synced 2024-09-20 02:47:34 +03:00
Use better name for the method that closes deleted buffers
co-authored-by: Max <max@zed.dev>
This commit is contained in:
parent
583b15badc
commit
2c8fffc4f8
@ -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>,
|
||||
|
@ -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)
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user