mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
fix mtime being bumped in .reset()
This commit is contained in:
parent
27a36482c0
commit
aecce5a516
1 changed files with 5 additions and 5 deletions
|
@ -402,11 +402,11 @@ class DeckManager:
|
||||||
"Select a new branch."
|
"Select a new branch."
|
||||||
# make sure arg is an int
|
# make sure arg is an int
|
||||||
did = int(did)
|
did = int(did)
|
||||||
# current deck
|
current = self.selected()
|
||||||
|
active = self.deck_and_child_ids(did)
|
||||||
|
if current != did or active != self.active():
|
||||||
self.col.conf["curDeck"] = did
|
self.col.conf["curDeck"] = did
|
||||||
# and active decks (current + all children)
|
self.col.conf["activeDecks"] = active
|
||||||
self.col.conf["activeDecks"] = self.deck_and_child_ids(did)
|
|
||||||
self.col.setMod()
|
|
||||||
|
|
||||||
# don't use this, it will likely go away
|
# don't use this, it will likely go away
|
||||||
def update_active(self):
|
def update_active(self):
|
||||||
|
|
Loading…
Reference in a new issue