mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 23:42:23 -04:00
no confirmation if deck is empty
This commit is contained in:
parent
f8a581b9c0
commit
c964322915
1 changed files with 2 additions and 2 deletions
|
@ -239,8 +239,8 @@ body { margin: 1em; -webkit-user-select: none; }
|
|||
if cnt:
|
||||
extra = _(" It has %d cards.") % cnt
|
||||
else:
|
||||
extra = ""
|
||||
if deck['dyn'] or askUser(
|
||||
extra = None
|
||||
if deck['dyn'] or not extra or askUser(
|
||||
_("Are you sure you wish to delete %s?" % deck['name']) +
|
||||
extra):
|
||||
self.mw.progress.start(immediate=True)
|
||||
|
|
Loading…
Reference in a new issue