Log a warning when leader activates an unknown view
This commit is contained in:
parent
6b710dc146
commit
90b54a45e8
1 changed files with 9 additions and 6 deletions
|
@ -3105,16 +3105,19 @@ impl Workspace {
|
||||||
if state.leader_id != leader_id {
|
if state.leader_id != leader_id {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if leader_in_this_app {
|
if let (Some(active_view_id), true) = (state.active_view_id, leader_in_this_app) {
|
||||||
let item = state
|
if let Some(item) = state.items_by_leader_view_id.get(&active_view_id) {
|
||||||
.active_view_id
|
|
||||||
.and_then(|id| state.items_by_leader_view_id.get(&id));
|
|
||||||
if let Some(item) = item {
|
|
||||||
if leader_in_this_project || !item.is_project_item(cx) {
|
if leader_in_this_project || !item.is_project_item(cx) {
|
||||||
items_to_activate.push((pane.clone(), item.boxed_clone()));
|
items_to_activate.push((pane.clone(), item.boxed_clone()));
|
||||||
}
|
}
|
||||||
continue;
|
} else {
|
||||||
|
log::warn!(
|
||||||
|
"unknown view id {:?} for leader {:?}",
|
||||||
|
active_view_id,
|
||||||
|
leader_id
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
if let Some(shared_screen) = self.shared_screen_for_peer(leader_id, pane, cx) {
|
if let Some(shared_screen) = self.shared_screen_for_peer(leader_id, pane, cx) {
|
||||||
items_to_activate.push((pane.clone(), Box::new(shared_screen)));
|
items_to_activate.push((pane.clone(), Box::new(shared_screen)));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue