From c023837b7671dbcf6756212684ab31c7d0d7c92c Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 29 Oct 2009 17:09:18 +0900 Subject: [PATCH] fix bury, increase recent deck paths limit --- ankiqt/ui/main.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py index 5d46196d1..3bf46ac50 100755 --- a/ankiqt/ui/main.py +++ b/ankiqt/ui/main.py @@ -759,7 +759,7 @@ To upgrade an old deck, download Anki 0.9.8.7.""")) if path in self.config['recentDeckPaths']: self.config['recentDeckPaths'].remove(path) self.config['recentDeckPaths'].insert(0, path) - del self.config['recentDeckPaths'][20:] + del self.config['recentDeckPaths'][100:] self.config.save() def onSwitchToDeck(self): @@ -1723,8 +1723,9 @@ learnt today") undo = _("Bury") self.deck.setUndoStart(undo) for card in self.currentCard.fact.cards: - card.priority = -2 - card.isDue = 0 + if card.priority > 0: + card.priority = -2 + card.isDue = 0 self.deck.flushMod() self.reset() self.deck.setUndoEnd(undo)