Merge branch 'main' into hotfix/attempt-substract-with-overflow

This commit is contained in:
Jonathan Schoreels 2025-04-29 14:06:10 +02:00 committed by GitHub
commit 6d50845db9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View file

@ -397,6 +397,7 @@ class Browser(QMainWindow):
add_ellipsis_to_action_label(f.actionCopy)
add_ellipsis_to_action_label(f.action_forget)
add_ellipsis_to_action_label(f.action_grade_now)
def _editor_web_view(self) -> EditorWebView:
assert self.editor is not None

View file

@ -3,6 +3,7 @@
from __future__ import annotations
import html
from collections.abc import Sequence
from anki.collection import OpChanges, OpChangesWithCount, OpChangesWithId
@ -22,7 +23,7 @@ def remove_decks(
lambda out: tooltip(
tr.browsing_cards_deleted_with_deckname(
count=out.count,
deck_name=deck_name,
deck_name=html.escape(deck_name),
),
parent=parent,
)