mirror of
https://github.com/ankitects/anki.git
synced 2025-11-11 23:27:12 -05:00
when user tries to cloze a normal note type, show help
This commit is contained in:
parent
a9a0b1752d
commit
2107c1a9c0
1 changed files with 1 additions and 2 deletions
|
|
@ -608,8 +608,7 @@ class Editor(object):
|
|||
def onCloze(self):
|
||||
# check that the model is set up for cloze deletion
|
||||
if 'cloze' not in self.note.model()['tmpls'][0]['qfmt']:
|
||||
showInfo(_("Cloze deletion requires a Cloze note type."),
|
||||
help="ClozeDeletion")
|
||||
openHelp("cloze")
|
||||
return
|
||||
f = self.note.fields[self.currentField]
|
||||
# find the highest existing cloze
|
||||
|
|
|
|||
Loading…
Reference in a new issue