mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
select the dyn deck as it's created
This commit is contained in:
parent
d8a9a5ea1f
commit
09ca65624a
1 changed files with 3 additions and 1 deletions
|
@ -396,4 +396,6 @@ class DeckManager(object):
|
||||||
|
|
||||||
def newDyn(self, name):
|
def newDyn(self, name):
|
||||||
"Return a new dynamic deck and set it as the current deck."
|
"Return a new dynamic deck and set it as the current deck."
|
||||||
return self.id(name, type=defaultDynamicDeck)
|
did = self.id(name, type=defaultDynamicDeck)
|
||||||
|
self.select(did)
|
||||||
|
return did
|
||||||
|
|
Loading…
Reference in a new issue