mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 08:22:24 -04:00
Merge branch 'main' into break_answer_buttons_table_x_axis_in_two_rows
This commit is contained in:
commit
72c7c159eb
3 changed files with 3 additions and 3 deletions
|
@ -397,6 +397,7 @@ class Browser(QMainWindow):
|
||||||
|
|
||||||
add_ellipsis_to_action_label(f.actionCopy)
|
add_ellipsis_to_action_label(f.actionCopy)
|
||||||
add_ellipsis_to_action_label(f.action_forget)
|
add_ellipsis_to_action_label(f.action_forget)
|
||||||
|
add_ellipsis_to_action_label(f.action_grade_now)
|
||||||
|
|
||||||
def _editor_web_view(self) -> EditorWebView:
|
def _editor_web_view(self) -> EditorWebView:
|
||||||
assert self.editor is not None
|
assert self.editor is not None
|
||||||
|
|
|
@ -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,
|
||||||
)
|
)
|
||||||
|
|
|
@ -368,8 +368,6 @@ impl Collection {
|
||||||
}))
|
}))
|
||||||
),
|
),
|
||||||
)?;
|
)?;
|
||||||
} else if card.queue == CardQueue::Suspended {
|
|
||||||
invalid_input!("Can't answer suspended cards");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
Loading…
Reference in a new issue