mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 06:07:11 -05:00
show # of empty cards to be deleted
This commit is contained in:
parent
7d5d81f79c
commit
dbc004e0ef
1 changed files with 5 additions and 3 deletions
|
|
@ -878,9 +878,11 @@ will be lost. Continue?"""))
|
||||||
def setupEmptyCardDel(self):
|
def setupEmptyCardDel(self):
|
||||||
addHook("remEmptyCards", self.onEmptyCards)
|
addHook("remEmptyCards", self.onEmptyCards)
|
||||||
|
|
||||||
def onEmptyCards(self, val, *args):
|
def onEmptyCards(self, flag, cnt):
|
||||||
return askUser(_("""\
|
if flag and askUser(_("""\
|
||||||
Your edits have left some cards empty. Do you want to delete them?"""))
|
Your edits have left %d cards empty. Do you want to delete them?""" % cnt)):
|
||||||
|
return flag
|
||||||
|
return False
|
||||||
|
|
||||||
# Advanced features
|
# Advanced features
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue