mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
show dialog on cloze in wrong type
This commit is contained in:
parent
893ed2bd1f
commit
47c89606a9
1 changed files with 3 additions and 1 deletions
|
@ -743,7 +743,9 @@ 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']:
|
||||||
openHelp("cloze")
|
showInfo(_("""\
|
||||||
|
To use this button, please select the Cloze note type. To learn more, \
|
||||||
|
please click the help button."""), help="cloze")
|
||||||
return
|
return
|
||||||
# find the highest existing cloze
|
# find the highest existing cloze
|
||||||
highest = 0
|
highest = 0
|
||||||
|
|
Loading…
Reference in a new issue