diff options
| author | lukeflo | 2025-02-24 15:29:47 +0000 |
|---|---|---|
| committer | lukeflo | 2025-02-24 15:29:47 +0000 |
| commit | 5da77a2f812a0bb6e0057f7b2e2c642142fca125 (patch) | |
| tree | 6be886693445a54e4cbd7b98151555eec220e863 /src/tui.rs | |
| parent | dd8dd9611771491e723a49b41cf27b1e9090664d (diff) | |
| parent | aff7c398da005029a293178e487cf5323e507fb4 (diff) | |
| download | bibiman-5da77a2f812a0bb6e0057f7b2e2c642142fca125.tar.gz bibiman-5da77a2f812a0bb6e0057f7b2e2c642142fca125.zip | |
Merge pull request 'Implement config file' (#15) from implement-config into main
Reviewed-on: https://codeberg.org/lukeflo/bibiman/pulls/15
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(()) } |
