diff options
| author | lukeflo | 2025-02-21 21:55:17 +0100 |
|---|---|---|
| committer | lukeflo | 2025-02-21 21:55:17 +0100 |
| commit | c34412d9e3725bed48af925646110f2ca34b1bd4 (patch) | |
| tree | e7f48bb25a605aeccf0c31ed310f1c7a1ae9e067 /src/tui.rs | |
| parent | ddb6326c1896b82b759d930fb08ea46a820e275a (diff) | |
| download | bibiman-c34412d9e3725bed48af925646110f2ca34b1bd4.tar.gz bibiman-c34412d9e3725bed48af925646110f2ca34b1bd4.zip | |
implement working config file construct, error handling should be improved
Diffstat (limited to 'src/tui.rs')
| -rw-r--r-- | src/tui.rs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -20,7 +20,7 @@ pub mod commands; pub mod popup; pub mod ui; -use crate::{cliargs::CLIArgs, App}; +use crate::{config::BibiConfig, App}; use crossterm::{ cursor, event::{ @@ -195,11 +195,11 @@ impl Tui { // // [`Draw`]: ratatui::Terminal::draw // [`rendering`]: crate::ui::render - pub fn draw(&mut self, app: &mut App, args: &CLIArgs) -> Result<()> { + pub fn draw(&mut self, app: &mut App, cfg: &BibiConfig) -> Result<()> { // self.terminal.draw(|frame| ui::render(app, frame))?; self.terminal // .draw(|frame| frame.render_widget(app, frame.area()))?; - .draw(|frame| ui::render_ui(app, args, frame))?; + .draw(|frame| ui::render_ui(app, cfg, frame))?; Ok(()) } |
