mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
per-deck default model
This commit is contained in:
parent
a8513a679a
commit
bc220e6f35
1 changed files with 3 additions and 1 deletions
|
@ -96,6 +96,8 @@ class ModelManager(object):
|
||||||
|
|
||||||
def current(self):
|
def current(self):
|
||||||
"Get current model."
|
"Get current model."
|
||||||
|
m = self.get(self.col.decks.current().get('mid'))
|
||||||
|
if not m:
|
||||||
m = self.get(self.col.conf['curModel'])
|
m = self.get(self.col.conf['curModel'])
|
||||||
return m or self.models.values()[0]
|
return m or self.models.values()[0]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue