mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Remove all_names in notetypechooser (#1501)
The only purpose is to stop having warning in my console because all_names is deprecated
This commit is contained in:
parent
2778b9220c
commit
74151ef60f
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ class NotetypeChooser(QHBoxLayout):
|
||||||
qconnect(edit.clicked, self.onEdit)
|
qconnect(edit.clicked, self.onEdit)
|
||||||
|
|
||||||
def nameFunc() -> list[str]:
|
def nameFunc() -> list[str]:
|
||||||
return sorted(self.mw.col.models.all_names())
|
return sorted(n.name for n in self.mw.col.models.all_names_and_ids())
|
||||||
|
|
||||||
ret = StudyDeck(
|
ret = StudyDeck(
|
||||||
self.mw,
|
self.mw,
|
||||||
|
|
Loading…
Reference in a new issue