another workaround for timeboxing issue

This commit is contained in:
Damien Elmes 2021-06-04 15:25:30 +10:00
parent 984ab9b6fe
commit 5d477d7e11

View file

@ -190,9 +190,6 @@ class Reviewer:
##########################################################################
def nextCard(self) -> None:
if self.check_timebox():
return
self.card = None
self._v3 = None
@ -211,6 +208,11 @@ class Reviewer:
self._showQuestion()
# Qt seems to get stuck if the timebox modal gets invoked when the
# webview is being loaded
# https://forums.ankiweb.net/t/anki-2-1-45-alpha/10061/96
self.mw.progress.timer(10, self.check_timebox, False)
def _get_next_v1_v2_card(self) -> None:
if self.cardQueue:
# undone/edited cards to show