aboutsummaryrefslogtreecommitdiff
path: root/src/tui.rs
diff options
context:
space:
mode:
authorlukeflo2025-02-24 15:29:47 +0000
committerlukeflo2025-02-24 15:29:47 +0000
commit5da77a2f812a0bb6e0057f7b2e2c642142fca125 (patch)
tree6be886693445a54e4cbd7b98151555eec220e863 /src/tui.rs
parentdd8dd9611771491e723a49b41cf27b1e9090664d (diff)
parentaff7c398da005029a293178e487cf5323e507fb4 (diff)
downloadbibiman-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.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tui.rs b/src/tui.rs
index b39b5c4..1e3061f 100644
--- a/src/tui.rs
+++ b/src/tui.rs
@@ -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(())
}