From 9e74f81fa49bead23551204e06eb66b2836cd530 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 23 Oct 2012 23:57:57 +0900 Subject: [PATCH] different cloze message when editing --- aqt/editor.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/aqt/editor.py b/aqt/editor.py index 78006d9ec..65ca39e98 100644 --- a/aqt/editor.py +++ b/aqt/editor.py @@ -710,9 +710,14 @@ 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(_("""\ + if self.addMode: + showInfo(_("""\ To use this button, please select the Cloze note type. To learn more, \ 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 # find the highest existing cloze highest = 0