mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
show correct card count when removing multiple templates
https://forums.ankiweb.net/t/error-in-card-type-deletion/10868
This commit is contained in:
parent
b26e125cbd
commit
d0ca61a608
1 changed files with 2 additions and 1 deletions
|
@ -550,7 +550,8 @@ class CardLayout(QDialog):
|
||||||
return
|
return
|
||||||
|
|
||||||
def get_count() -> int:
|
def get_count() -> int:
|
||||||
return self.mm.template_use_count(self.model["id"], self.ord)
|
ord = self.current_template()["ord"]
|
||||||
|
return self.mm.template_use_count(self.model["id"], ord)
|
||||||
|
|
||||||
def on_done(fut: Future) -> None:
|
def on_done(fut: Future) -> None:
|
||||||
card_cnt = fut.result()
|
card_cnt = fut.result()
|
||||||
|
|
Loading…
Reference in a new issue