mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
display warning when card has empty front
This commit is contained in:
parent
a878a5c7b4
commit
ef60eb4bba
1 changed files with 5 additions and 1 deletions
|
@ -167,6 +167,10 @@ function _typeAnsPress() {
|
|||
self.typedAnswer = None
|
||||
c = self.card
|
||||
# grab the question and play audio
|
||||
if c.isEmpty():
|
||||
q = _("""\
|
||||
The front of this card is empty. Please run Tools>Maintenance>Empty Cards.""")
|
||||
else:
|
||||
q = c.q()
|
||||
if self._autoplay(c):
|
||||
playFromText(q)
|
||||
|
|
Loading…
Reference in a new issue