Add nothing to undo/redo

https://forums.ankiweb.net/t/translation-of-nothing-to-undo/31735
This commit is contained in:
Damien Elmes 2023-07-04 13:38:28 +10:00
parent aced75f743
commit 32d6248ff1
2 changed files with 3 additions and 1 deletions

View file

@ -68,3 +68,5 @@ actions-flag-pink = Pink
actions-flag-turquoise = Turquoise
actions-flag-purple = Purple
actions-set-flag = Set Flag
actions-nothing-to-undo = Nothing to undo
actions-nothing-to-redo = Nothing to redo

View file

@ -60,7 +60,7 @@ def _legacy_undo(*, parent: QWidget) -> None:
if result is None:
# should not happen
showInfo("nothing to undo", parent=parent)
showInfo(tr.actions_nothing_to_undo(), parent=parent)
mw.update_undo_actions()
return