mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
Fix missing breadcrumbs on first open of project search.
Fixes: Project search does not have breadcrumbs on its first open: after switching to other tab and back, breadcrumbs are shown
This commit is contained in:
parent
d185fca80c
commit
e81072ac0f
@ -86,8 +86,13 @@ impl ToolbarItemView for Breadcrumbs {
|
||||
cx,
|
||||
Box::new(move |event, cx| {
|
||||
if let ItemEvent::UpdateBreadcrumbs = event {
|
||||
this.update(cx, |_, cx| {
|
||||
this.update(cx, |this, cx| {
|
||||
cx.notify();
|
||||
if let Some(active_item) = this.active_item.as_ref() {
|
||||
cx.emit(ToolbarItemEvent::ChangeLocation(
|
||||
active_item.breadcrumb_location(cx),
|
||||
))
|
||||
}
|
||||
})
|
||||
.ok();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user