diff options
Diffstat (limited to 'src/gui/question.rs')
-rw-r--r-- | src/gui/question.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/question.rs b/src/gui/question.rs index e88d6e5..211bcda 100644 --- a/src/gui/question.rs +++ b/src/gui/question.rs @@ -28,8 +28,8 @@ enum Answer { pub fn ask<B: Backend>( terminal: &mut Terminal<B>, events: &Events, + title: &String, card: &Card, - deck_name: &String, ) -> Result<Difficulty> { let mut state = State { input: String::new(), @@ -53,7 +53,7 @@ pub fn ask<B: Backend>( ) .split(f.size()); - let d1 = util::title(deck_name); + let d1 = util::title(title); f.render_widget(d1, chunks[0]); let question = Paragraph::new(util::center_vertically(chunks[1], &card.question)) |