Log view name alongside error in ChildView
This commit is contained in:
parent
edb61a9c8f
commit
a5a60eb854
29 changed files with 105 additions and 63 deletions
|
@ -162,8 +162,8 @@ impl View for TerminalContainer {
|
|||
|
||||
fn render(&mut self, cx: &mut gpui::RenderContext<'_, Self>) -> ElementBox {
|
||||
let child_view = match &self.content {
|
||||
TerminalContainerContent::Connected(connected) => ChildView::new(connected),
|
||||
TerminalContainerContent::Error(error) => ChildView::new(error),
|
||||
TerminalContainerContent::Connected(connected) => ChildView::new(connected, cx),
|
||||
TerminalContainerContent::Error(error) => ChildView::new(error, cx),
|
||||
};
|
||||
if self.modal {
|
||||
let settings = cx.global::<Settings>();
|
||||
|
|
|
@ -339,7 +339,7 @@ impl View for TerminalView {
|
|||
.contained()
|
||||
.boxed(),
|
||||
)
|
||||
.with_child(ChildView::new(&self.context_menu).boxed())
|
||||
.with_child(ChildView::new(&self.context_menu, cx).boxed())
|
||||
.boxed()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue