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." "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()
self.col.conf["curDeck"] = did active = self.deck_and_child_ids(did)
# and active decks (current + all children) if current != did or active != self.active():
self.col.conf["activeDecks"] = self.deck_and_child_ids(did) self.col.conf["curDeck"] = did
self.col.setMod() self.col.conf["activeDecks"] = active
# 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):