Update followers when navigating back and forth
This commit is contained in:
parent
6daefc467a
commit
5ef484c9a1
2 changed files with 28 additions and 4 deletions
|
@ -206,10 +206,6 @@ impl Pane {
|
|||
}
|
||||
|
||||
let prev_active_index = mem::replace(&mut pane.active_item_index, index);
|
||||
pane.focus_active_item(cx);
|
||||
pane.update_toolbar(cx);
|
||||
cx.emit(Event::ActivateItem { local: true });
|
||||
cx.notify();
|
||||
|
||||
let mut navigated = prev_active_index != pane.active_item_index;
|
||||
if let Some(data) = entry.data {
|
||||
|
@ -217,6 +213,11 @@ impl Pane {
|
|||
}
|
||||
|
||||
if navigated {
|
||||
pane.focus_active_item(cx);
|
||||
pane.update_toolbar(cx);
|
||||
pane.activate(cx);
|
||||
cx.emit(Event::ActivateItem { local: true });
|
||||
cx.notify();
|
||||
break None;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue