mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -04:00
fix bury, increase recent deck paths limit
This commit is contained in:
parent
c8c7ad0b62
commit
c023837b76
1 changed files with 4 additions and 3 deletions
|
@ -759,7 +759,7 @@ To upgrade an old deck, download Anki 0.9.8.7."""))
|
||||||
if path in self.config['recentDeckPaths']:
|
if path in self.config['recentDeckPaths']:
|
||||||
self.config['recentDeckPaths'].remove(path)
|
self.config['recentDeckPaths'].remove(path)
|
||||||
self.config['recentDeckPaths'].insert(0, path)
|
self.config['recentDeckPaths'].insert(0, path)
|
||||||
del self.config['recentDeckPaths'][20:]
|
del self.config['recentDeckPaths'][100:]
|
||||||
self.config.save()
|
self.config.save()
|
||||||
|
|
||||||
def onSwitchToDeck(self):
|
def onSwitchToDeck(self):
|
||||||
|
@ -1723,6 +1723,7 @@ learnt today")
|
||||||
undo = _("Bury")
|
undo = _("Bury")
|
||||||
self.deck.setUndoStart(undo)
|
self.deck.setUndoStart(undo)
|
||||||
for card in self.currentCard.fact.cards:
|
for card in self.currentCard.fact.cards:
|
||||||
|
if card.priority > 0:
|
||||||
card.priority = -2
|
card.priority = -2
|
||||||
card.isDue = 0
|
card.isDue = 0
|
||||||
self.deck.flushMod()
|
self.deck.flushMod()
|
||||||
|
|
Loading…
Reference in a new issue