mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
make sure to mark deck active before we show its options
This commit is contained in:
parent
f03ac89817
commit
94252dd59c
1 changed files with 4 additions and 1 deletions
|
@ -263,7 +263,10 @@ where id > ?""", (self.mw.col.sched.dayCutoff-86400)*1000)
|
|||
self.show()
|
||||
|
||||
def _options(self, did):
|
||||
self.mw.onDeckConf(self.mw.col.decks.get(did))
|
||||
# select the deck first, because the dyn deck conf assumes the deck
|
||||
# we're editing is the current one
|
||||
self.mw.col.decks.select(did)
|
||||
self.mw.onDeckConf()
|
||||
|
||||
def _collapse(self, did):
|
||||
self.mw.col.decks.collapse(did)
|
||||
|
|
Loading…
Reference in a new issue