Add dump default impl for Panel trait.

This commit is contained in:
Jason Lee 2024-09-09 14:38:52 +08:00
parent 33f0291f6d
commit d6d00f59a2

View file

@ -50,7 +50,9 @@ pub trait Panel: EventEmitter<PanelEvent> + 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 {