mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
ensure tag order correct when suspending too
This commit is contained in:
parent
ccf96a04e1
commit
92b19171f7
1 changed files with 2 additions and 1 deletions
|
@ -1342,7 +1342,8 @@ day = :d""", d=yesterday)
|
||||||
def onSuspend(self):
|
def onSuspend(self):
|
||||||
undo = _("Suspend")
|
undo = _("Suspend")
|
||||||
self.deck.setUndoStart(undo)
|
self.deck.setUndoStart(undo)
|
||||||
self.currentCard.fact.tags = addTags("Suspended", self.currentCard.fact.tags)
|
self.currentCard.fact.tags = canonifyTags(
|
||||||
|
addTags("Suspended", self.currentCard.fact.tags))
|
||||||
self.currentCard.fact.setModified(textChanged=True)
|
self.currentCard.fact.setModified(textChanged=True)
|
||||||
self.deck.updateFactTags([self.currentCard.fact.id])
|
self.deck.updateFactTags([self.currentCard.fact.id])
|
||||||
for card in self.currentCard.fact.cards:
|
for card in self.currentCard.fact.cards:
|
||||||
|
|
Loading…
Reference in a new issue