mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -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
|
self.typedAnswer = None
|
||||||
c = self.card
|
c = self.card
|
||||||
# grab the question and play audio
|
# 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()
|
q = c.q()
|
||||||
if self._autoplay(c):
|
if self._autoplay(c):
|
||||||
playFromText(q)
|
playFromText(q)
|
||||||
|
|
Loading…
Reference in a new issue