mirror of
https://github.com/ankitects/anki.git
synced 2025-11-08 13:47:13 -05:00
report # of cards deleted when reviewing
This commit is contained in:
parent
77bf2a2fb9
commit
a70abd7462
1 changed files with 5 additions and 1 deletions
|
|
@ -679,9 +679,13 @@ function showAnswer(txt) {
|
||||||
|
|
||||||
def onDelete(self):
|
def onDelete(self):
|
||||||
self.mw.checkpoint(_("Delete"))
|
self.mw.checkpoint(_("Delete"))
|
||||||
|
cnt = len(self.card.note().cards())
|
||||||
self.mw.col.remNotes([self.card.note().id])
|
self.mw.col.remNotes([self.card.note().id])
|
||||||
self.mw.reset()
|
self.mw.reset()
|
||||||
tooltip(_("Note and its cards deleted."))
|
tooltip(ngettext(
|
||||||
|
"Note and its %d card deleted.",
|
||||||
|
"Note and its %d cards deleted.",
|
||||||
|
cnt) % cnt)
|
||||||
|
|
||||||
def onBuryNote(self):
|
def onBuryNote(self):
|
||||||
self.mw.checkpoint(_("Bury"))
|
self.mw.checkpoint(_("Bury"))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue