Refreshes the list of papers in the TUI
(&mut self)
| 204 | |
| 205 | /// Refreshes the list of papers in the TUI |
| 206 | async fn refresh_papers(&mut self) -> Result<()> { |
| 207 | self.state.papers = |
| 208 | Query::list_all().order_by(OrderField::Title).execute(&mut self.learner.database).await?; |
| 209 | self.state.needs_redraw = true; |
| 210 | Ok(()) |
| 211 | } |
| 212 | } |
| 213 | |
| 214 | impl UserInteraction for Tui { |
no test coverage detected