mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 00:36:38 -04:00
different cloze message when editing
This commit is contained in:
parent
8070a15d30
commit
9e74f81fa4
1 changed files with 6 additions and 1 deletions
|
@ -710,9 +710,14 @@ 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(_("""\
|
if self.addMode:
|
||||||
|
showInfo(_("""\
|
||||||
To use this button, please select the Cloze note type. To learn more, \
|
To use this button, please select the Cloze note type. To learn more, \
|
||||||
please click the help button."""), help="cloze")
|
please click the help button."""), help="cloze")
|
||||||
|
else:
|
||||||
|
showInfo(_("""\
|
||||||
|
To make a cloze deletion on an existing note, you need to change it \
|
||||||
|
to a cloze type first, via Edit>Change Note Type."""))
|
||||||
return
|
return
|
||||||
# find the highest existing cloze
|
# find the highest existing cloze
|
||||||
highest = 0
|
highest = 0
|
||||||
|
|
Loading…
Reference in a new issue