mirror of
https://github.com/ankitects/anki.git
synced 2025-11-12 07:37:11 -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):
|
def onCloze(self):
|
||||||
# check that the model is set up for cloze deletion
|
# check that the model is set up for cloze deletion
|
||||||
if 'cloze' not in self.note.model()['tmpls'][0]['qfmt']:
|
if 'cloze' not in self.note.model()['tmpls'][0]['qfmt']:
|
||||||
showInfo(_("Cloze deletion requires a Cloze note type."),
|
openHelp("cloze")
|
||||||
help="ClozeDeletion")
|
|
||||||
return
|
return
|
||||||
f = self.note.fields[self.currentField]
|
f = self.note.fields[self.currentField]
|
||||||
# find the highest existing cloze
|
# find the highest existing cloze
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue