mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
reuse existing use count in note types screen
This commit is contained in:
parent
ce104d16a3
commit
36c1d1cf8c
1 changed files with 2 additions and 1 deletions
|
@ -107,7 +107,8 @@ class Models(QDialog):
|
|||
if len(self.models) < 2:
|
||||
showInfo(_("Please add another note type first."), parent=self)
|
||||
return
|
||||
if self.mm.useCount(self.model):
|
||||
idx = self.form.modelsList.currentRow()
|
||||
if self.models[idx].use_count:
|
||||
msg = _("Delete this note type and all its cards?")
|
||||
else:
|
||||
msg = _("Delete this unused note type?")
|
||||
|
|
Loading…
Reference in a new issue