From d28096241a13cec7391add008ee8b88a5aa877ec Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 1 Feb 2010 03:37:39 +0900 Subject: [PATCH] update card stats when transitioning to finished screen, too --- ankiqt/ui/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py index 72bbfc0da..a595b5f71 100755 --- a/ankiqt/ui/main.py +++ b/ankiqt/ui/main.py @@ -342,6 +342,7 @@ Please do not file a bug report with Anki.
""") self.bodyView.setState(state) # focus finish button self.mainWin.finishButton.setFocus() + runHook('deckFinished') elif state == "showQuestion": self.reviewingStarted = True if self.deck.mediaDir(): @@ -1691,6 +1692,7 @@ learnt today") def onCardStats(self): addHook("showQuestion", self.onCardStats) + addHook("deckFinished", self.onCardStats) txt = "" if self.currentCard: txt += _("

Current card

") @@ -1705,6 +1707,7 @@ learnt today") def removeCardStatsHook(self): "Remove the update hook if the help menu was changed." removeHook("showQuestion", self.onCardStats) + removeHook("deckFinished", self.onCardStats) def onShowGraph(self): if ui.utils.pyQtBroken: