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:
Arthur Milchior 2021-11-23 01:27:57 +01:00 committed by GitHub
parent 2778b9220c
commit 74151ef60f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -103,7 +103,7 @@ class NotetypeChooser(QHBoxLayout):
qconnect(edit.clicked, self.onEdit)
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(
self.mw,