mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -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):
|
||||
# check that the model is set up for cloze deletion
|
||||
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
|
||||
# find the highest existing cloze
|
||||
highest = 0
|
||||
|
|
Loading…
Reference in a new issue