From e807957ce48368905f059c7b0c8e8116d98e37e1 Mon Sep 17 00:00:00 2001 From: Joris Date: Thu, 27 Oct 2022 09:17:39 +0200 Subject: Don’t show responses when correct In case a question has many responses, we previously showed all the responses, no matter if it was answered correctly or not. But this gets too much is they eye, maybe because it’s associated with failure, because we show the response in this case. Just say it’s OK, there is no need to show the alternatives. Anyway, the alternatives will be asked in another card. --- src/gui/question.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/question.rs b/src/gui/question.rs index 727daa9..2060cb7 100644 --- a/src/gui/question.rs +++ b/src/gui/question.rs @@ -99,7 +99,7 @@ pub fn ask( difficulty: selected, } = state.answer { - if !is_correct(&state.input, &card.responses) || card.responses.len() > 1 { + if !is_correct(&state.input, &card.responses) { let paragraph = Paragraph::new(util::center_vertically( chunks[3], &serialization::words_to_line(&card.responses), -- cgit v1.2.3