mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Fix unescaped deck names missing from tooltips when deleted (#3960)
This commit is contained in:
parent
07033435a6
commit
51b5086b01
1 changed files with 2 additions and 1 deletions
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
|
import html
|
||||||
from collections.abc import Sequence
|
from collections.abc import Sequence
|
||||||
|
|
||||||
from anki.collection import OpChanges, OpChangesWithCount, OpChangesWithId
|
from anki.collection import OpChanges, OpChangesWithCount, OpChangesWithId
|
||||||
|
@ -22,7 +23,7 @@ def remove_decks(
|
||||||
lambda out: tooltip(
|
lambda out: tooltip(
|
||||||
tr.browsing_cards_deleted_with_deckname(
|
tr.browsing_cards_deleted_with_deckname(
|
||||||
count=out.count,
|
count=out.count,
|
||||||
deck_name=deck_name,
|
deck_name=html.escape(deck_name),
|
||||||
),
|
),
|
||||||
parent=parent,
|
parent=parent,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue