diff options
author | Joris | 2022-02-12 17:21:29 +0100 |
---|---|---|
committer | Joris | 2022-02-12 17:21:29 +0100 |
commit | 87e12144440b9525cbabdca5a9f79038a9a0f0e0 (patch) | |
tree | 8414fe44230448eae35e72ae2904cf93753dd552 /src/gui/message.rs | |
parent | 3adf3f9697c4e2beb10e652947046d5fddda2ed4 (diff) |
Show current progress after the deck name
Diffstat (limited to 'src/gui/message.rs')
-rw-r--r-- | src/gui/message.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/message.rs b/src/gui/message.rs index 158416e..01d124e 100644 --- a/src/gui/message.rs +++ b/src/gui/message.rs @@ -12,8 +12,8 @@ use tui::{ pub fn show<B: Backend>( terminal: &mut Terminal<B>, events: &Events, + title: &String, message: &String, - deck_name: &String, ) -> Result<()> { loop { terminal.draw(|f| { @@ -23,7 +23,7 @@ pub fn show<B: Backend>( .constraints([Constraint::Length(1), Constraint::Percentage(50)].as_ref()) .split(f.size()); - let d1 = util::title(deck_name); + let d1 = util::title(title); f.render_widget(d1, chunks[0]); let message = Paragraph::new(util::center_vertically(chunks[1], &message)) |