diff --git a/ftl/core/adding.ftl b/ftl/core/adding.ftl index 035717547..4a9756dc5 100644 --- a/ftl/core/adding.ftl +++ b/ftl/core/adding.ftl @@ -6,6 +6,6 @@ adding-history = History adding-note-deleted = (Note deleted) adding-shortcut = Shortcut: { $val } adding-the-first-field-is-empty = The first field is empty. -adding-missing-cloze = You have a cloze notetype but have not made any cloze deletions. +adding-you-have-a-cloze-deletion-note = You have a cloze notetype but have not made any cloze deletions. Proceed? adding-cloze-outside-cloze-notetype = Cloze deletion can only be used on cloze notetypes. adding-cloze-outside-cloze-field = Cloze deletion can only be used in fields which use the 'cloze:' filter. This is typically the first field. diff --git a/qt/aqt/addcards.py b/qt/aqt/addcards.py index 0574fdd70..7a2f15154 100644 --- a/qt/aqt/addcards.py +++ b/qt/aqt/addcards.py @@ -234,7 +234,8 @@ class AddCards(QDialog): if result == NoteFieldsCheckResult.EMPTY: problem = tr.adding_the_first_field_is_empty() elif result == NoteFieldsCheckResult.MISSING_CLOZE: - problem = tr.adding_missing_cloze() + if not askUser(tr.adding_you_have_a_cloze_deletion_note()): + return False elif result == NoteFieldsCheckResult.NOTETYPE_NOT_CLOZE: problem = tr.adding_cloze_outside_cloze_notetype() elif result == NoteFieldsCheckResult.FIELD_NOT_CLOZE: