1
0
mirror of https://github.com/bobwen-dev/hunter synced 2025-04-12 00:55:41 +02:00

fix LogView exit

This commit is contained in:
rabite 2019-05-28 15:06:00 +02:00
parent 3a2130d609
commit 16866e5aeb

View File

@ -87,7 +87,9 @@ pub trait FoldableWidgetExt {
fn on_refresh(&mut self) -> HResult<()> { Ok(()) }
fn render_header(&self) -> HResult<String> { Ok("".to_string()) }
fn render_footer(&self) -> HResult<String> { Ok("".to_string()) }
fn on_key(&mut self, _key: Key) -> HResult<()> { Ok(()) }
fn on_key(&mut self, key: Key) -> HResult<()> {
HError::undefined_key(key)?
}
fn render(&self) -> Vec<String> { vec![] }
}