diff options
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)) |