mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
fix deprecation warning in modelchooser.py
This commit is contained in:
parent
5de3918dbf
commit
57f3d300bb
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ class ModelChooser(QHBoxLayout):
|
||||||
edit = QPushButton(tr.qt_misc_manage(), clicked=self.onEdit) # type: ignore
|
edit = QPushButton(tr.qt_misc_manage(), clicked=self.onEdit) # type: ignore
|
||||||
|
|
||||||
def nameFunc() -> List[str]:
|
def nameFunc() -> List[str]:
|
||||||
return sorted(self.deck.models.all_names())
|
return [nt.name for nt in self.deck.models.all_names_and_ids()]
|
||||||
|
|
||||||
ret = StudyDeck(
|
ret = StudyDeck(
|
||||||
self.mw,
|
self.mw,
|
||||||
|
|
Loading…
Reference in a new issue