mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
another workaround for timeboxing issue
This commit is contained in:
parent
984ab9b6fe
commit
5d477d7e11
1 changed files with 5 additions and 3 deletions
|
@ -190,9 +190,6 @@ class Reviewer:
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
|
||||||
def nextCard(self) -> None:
|
def nextCard(self) -> None:
|
||||||
if self.check_timebox():
|
|
||||||
return
|
|
||||||
|
|
||||||
self.card = None
|
self.card = None
|
||||||
self._v3 = None
|
self._v3 = None
|
||||||
|
|
||||||
|
@ -211,6 +208,11 @@ class Reviewer:
|
||||||
|
|
||||||
self._showQuestion()
|
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:
|
def _get_next_v1_v2_card(self) -> None:
|
||||||
if self.cardQueue:
|
if self.cardQueue:
|
||||||
# undone/edited cards to show
|
# undone/edited cards to show
|
||||||
|
|
Loading…
Reference in a new issue