mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
model names are callable
This commit is contained in:
parent
08e8e6ac28
commit
f22c65bdff
1 changed files with 2 additions and 0 deletions
|
@ -134,6 +134,8 @@ class AddModel(QDialog):
|
|||
# standard models
|
||||
self.models = []
|
||||
for (name, func) in stdmodels.models:
|
||||
if callable(name):
|
||||
name = name()
|
||||
item = QListWidgetItem(_("Add: %s") % name)
|
||||
self.dialog.models.addItem(item)
|
||||
self.models.append((True, func))
|
||||
|
|
Loading…
Reference in a new issue