fix mtime being bumped in .reset()

This commit is contained in:
Damien Elmes 2020-05-31 11:47:29 +10:00
parent 27a36482c0
commit aecce5a516

View file

@ -402,11 +402,11 @@ class DeckManager:
"Select a new branch."
# make sure arg is an int
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
# and active decks (current + all children)
self.col.conf["activeDecks"] = self.deck_and_child_ids(did)
self.col.setMod()
self.col.conf["activeDecks"] = active
# don't use this, it will likely go away
def update_active(self):