Update Ratatui

This commit is contained in:
mo8it
2024-08-09 02:17:01 +02:00
parent 16af981772
commit 52a231ce2f
4 changed files with 44 additions and 24 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ pub fn list(app_state: &mut AppState) -> Result<()> {
let mut ui_state = UiState::new(app_state);
'outer: loop {
terminal.draw(|frame| ui_state.draw(frame).unwrap())?;
terminal.try_draw(|frame| ui_state.draw(frame).map_err(io::Error::other))?;
let key = loop {
match event::read()? {
+1 -1
View File
@@ -161,7 +161,7 @@ impl<'a> UiState<'a> {
}
pub fn draw(&mut self, frame: &mut Frame) -> Result<()> {
let area = frame.size();
let area = frame.area();
frame.render_stateful_widget(
&self.table,