Add dump default impl for Panel trait.
This commit is contained in:
parent
33f0291f6d
commit
d6d00f59a2
1 changed files with 3 additions and 1 deletions
|
|
@ -50,7 +50,9 @@ pub trait Panel: EventEmitter<PanelEvent> + FocusableView {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Dump the panel, used to serialize the panel.
|
/// 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 {
|
pub trait PanelView: 'static + Send + Sync {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue