mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 21:32:40 +00:00
Drop project's buffers when closing a remote project
This commit is contained in:
parent
5a4fa4b11e
commit
576a9bb92c
1 changed files with 1 additions and 0 deletions
|
@ -597,6 +597,7 @@ async fn apply_client_operation(
|
||||||
.unwrap();
|
.unwrap();
|
||||||
cx.update(|_| {
|
cx.update(|_| {
|
||||||
client.remote_projects_mut().remove(ix);
|
client.remote_projects_mut().remove(ix);
|
||||||
|
client.buffers().retain(|project, _| project != project);
|
||||||
drop(project);
|
drop(project);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue