mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
fix type answer race condition
user may hit enter before the question has been written, due to fade out delay
This commit is contained in:
parent
1cc29278f2
commit
944bca0f44
1 changed files with 1 additions and 1 deletions
|
@ -442,7 +442,7 @@ Please run Tools>Empty Cards""")
|
|||
self.web.evalWithCallback("typeans ? typeans.value : null", self._onTypedAnswer)
|
||||
|
||||
def _onTypedAnswer(self, val):
|
||||
self.typedAnswer = val
|
||||
self.typedAnswer = val or ""
|
||||
self._showAnswer()
|
||||
|
||||
# Bottom bar
|
||||
|
|
Loading…
Reference in a new issue