diff --git a/qt/aqt/browser/browser.py b/qt/aqt/browser/browser.py index bf953871a..4f17e8f0b 100644 --- a/qt/aqt/browser/browser.py +++ b/qt/aqt/browser/browser.py @@ -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 diff --git a/qt/aqt/operations/deck.py b/qt/aqt/operations/deck.py index 518beafaf..1e19098c0 100644 --- a/qt/aqt/operations/deck.py +++ b/qt/aqt/operations/deck.py @@ -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, ) diff --git a/rslib/src/scheduler/answering/mod.rs b/rslib/src/scheduler/answering/mod.rs index 13006fa88..02e5ee8d6 100644 --- a/rslib/src/scheduler/answering/mod.rs +++ b/rslib/src/scheduler/answering/mod.rs @@ -368,8 +368,6 @@ impl Collection { })) ), )?; - } else if card.queue == CardQueue::Suspended { - invalid_input!("Can't answer suspended cards"); } Ok(())