2021-03-04 13:14:35 +01:00
|
|
|
undo-undo = Undo
|
|
|
|
undo-redo = Redo
|
2021-03-03 09:57:45 +01:00
|
|
|
# eg "Undo Answer Card"
|
|
|
|
undo-undo-action = Undo { $val }
|
|
|
|
# eg "Answer Card Undone"
|
2021-03-05 10:09:08 +01:00
|
|
|
undo-action-undone = { $action } undone
|
2021-03-03 09:57:45 +01:00
|
|
|
undo-redo-action = Redo { $action }
|
2021-03-05 10:09:08 +01:00
|
|
|
undo-action-redone = { $action } redone
|
2021-03-05 11:47:51 +01:00
|
|
|
|
|
|
|
## Action that can be undone
|
|
|
|
|
2021-03-03 09:57:45 +01:00
|
|
|
undo-answer-card = Answer Card
|
2021-03-04 13:14:35 +01:00
|
|
|
undo-unbury-unsuspend = Unbury/Unsuspend
|
2021-03-10 14:50:11 +01:00
|
|
|
undo-add-deck = Add Deck
|
2021-03-05 01:04:42 +01:00
|
|
|
undo-add-note = Add Note
|
2021-03-05 11:47:51 +01:00
|
|
|
undo-update-tag = Update Tag
|
2021-03-05 13:45:55 +01:00
|
|
|
undo-update-note = Update Note
|
2021-03-06 15:17:17 +01:00
|
|
|
undo-update-card = Update Card
|
2021-03-10 14:50:11 +01:00
|
|
|
undo-update-deck = Update Deck
|
2021-03-12 07:13:50 +01:00
|
|
|
undo-forget-card = Forget Card
|
more reset refactoring
'card modified' covers the common case where we need to rebuild the
study queue, but is also set when changing the card flags. We want to
avoid a queue rebuild in that case, as it causes UI flicker, and may
result in a different card being shown. Note marking doesn't trigger
a queue build, but still causes flicker, and may return the user back
to the front side when they were looking at the answer.
I still think entity-based change tracking is the simplest in the
common case, but to solve the above, I've introduced an enum describing
the last operation that was taken. This currently is not trying to list
out all possible operations, and just describes the ones we want to
special-case.
Other changes:
- Fire the old 'state_did_reset' hook after an operation is performed,
so legacy code can refresh itself after an operation is performed.
- Fire the new `operation_did_execute` hook when mw.reset() is called,
so that as the UI is updated to the use the new hook, it will still
be able to refresh after legacy code calls mw.reset()
- Update the deck browser, overview and review screens to listen to
the new hook, instead of relying on the main window to call moveToState()
- Add a 'set flag' backend action, so we can distinguish it from a
normal card update.
- Drop the separate added/modified entries in the change list in
favour of a single entry per entity.
- Add typing to mw.state
- Tweak perform_op()
- Convert a few more actions to use perform_op()
2021-03-14 10:54:15 +01:00
|
|
|
undo-set-flag = Set Flag
|
2021-03-24 03:56:06 +01:00
|
|
|
undo-build-filtered-deck = Build Deck
|