mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -04:00
make sure we switch back to old deck when filt. cancelled (#338)
This commit is contained in:
parent
983c9b21cf
commit
c67c932c64
1 changed files with 2 additions and 1 deletions
|
@ -722,8 +722,8 @@ and check the statistics for a home deck instead."""))
|
|||
def onCram(self, search=""):
|
||||
import aqt.dyndeckconf
|
||||
n = 1
|
||||
deck = self.col.decks.current()
|
||||
if not search:
|
||||
deck = self.col.decks.current()
|
||||
if not deck['dyn']:
|
||||
search = 'deck:"%s" ' % deck['name']
|
||||
decks = self.col.decks.allNames()
|
||||
|
@ -735,6 +735,7 @@ and check the statistics for a home deck instead."""))
|
|||
if not diag.ok:
|
||||
# user cancelled first config
|
||||
self.col.decks.rem(did)
|
||||
self.col.decks.select(deck['id'])
|
||||
else:
|
||||
self.moveToState("overview")
|
||||
|
||||
|
|
Loading…
Reference in a new issue