diff --git a/crates/ui/src/dock/panel.rs b/crates/ui/src/dock/panel.rs index 2f459e65..b2a7261a 100644 --- a/crates/ui/src/dock/panel.rs +++ b/crates/ui/src/dock/panel.rs @@ -50,7 +50,9 @@ pub trait Panel: EventEmitter + FocusableView { } /// Dump the panel, used to serialize the panel. - fn dump(&self, cx: &AppContext) -> DockItemState; + fn dump(&self, _cx: &AppContext) -> DockItemState { + DockItemState::new(self.panel_name()) + } } pub trait PanelView: 'static + Send + Sync {