@@ -789,6 +789,7 @@ impl Pane {
|
||||
}
|
||||
|
||||
self.update_toolbar(cx);
|
||||
self.update_status_bar(cx);
|
||||
|
||||
if focus_item {
|
||||
self.focus_active_item(cx);
|
||||
@@ -1450,6 +1451,22 @@ impl Pane {
|
||||
});
|
||||
}
|
||||
|
||||
fn update_status_bar(&mut self, cx: &mut ViewContext<Self>) {
|
||||
let workspace = self.workspace.clone();
|
||||
let pane = cx.view().clone();
|
||||
|
||||
cx.window_context().defer(move |cx| {
|
||||
let Ok(status_bar) = workspace.update(cx, |workspace, _| workspace.status_bar.clone())
|
||||
else {
|
||||
return;
|
||||
};
|
||||
|
||||
status_bar.update(cx, move |status_bar, cx| {
|
||||
status_bar.set_active_pane(&pane, cx);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
fn render_tab(
|
||||
&self,
|
||||
ix: usize,
|
||||
|
||||
Reference in New Issue
Block a user