From 74151ef60fefa972ed51b76391bcc3878cf94c85 Mon Sep 17 00:00:00 2001 From: Arthur Milchior Date: Tue, 23 Nov 2021 01:27:57 +0100 Subject: [PATCH] Remove all_names in notetypechooser (#1501) The only purpose is to stop having warning in my console because all_names is deprecated --- qt/aqt/notetypechooser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/aqt/notetypechooser.py b/qt/aqt/notetypechooser.py index ca2a5080d..90d0f3673 100644 --- a/qt/aqt/notetypechooser.py +++ b/qt/aqt/notetypechooser.py @@ -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,