Stop following when project is unshared (#4010)
Before this change the views would continue to update in the background of the "disconnected" dialogue, which was disconcerting. [[PR Description]] Release Notes: - Fixed an edge-case where following didn't handle unshare correctly
This commit is contained in:
commit
43183538a7
5 changed files with 170 additions and 46 deletions
|
@ -512,6 +512,11 @@ impl Workspace {
|
|||
|
||||
project::Event::DisconnectedFromHost => {
|
||||
this.update_window_edited(cx);
|
||||
let panes_to_unfollow: Vec<View<Pane>> =
|
||||
this.follower_states.keys().map(|k| k.clone()).collect();
|
||||
for pane in panes_to_unfollow {
|
||||
this.unfollow(&pane, cx);
|
||||
}
|
||||
cx.disable_focus();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue