Anki/proto/anki
Arthur Milchior ce2f4136ea
Empty cards become undoable (#3386)
* Empty cards is undoable

If there was a reason for this operation not to be undoable, I can't easily guess it. My main hyposhesis was that the number of deleted card may be too big. But I realized that deleting a deck is undoable and may delete as many note.

As you may know, I realized that only the undoable operations triggered notification in AnkiDroid that we may have to update the UI. And while I just wanted to trigger more notifications, some reviewers thought it would be nicer if the operation were returning a OpChanges. So here it's done. If you would please consider merging it.

I decided to introduce a new string because the closest strings I could find currently are "Empty cards..." and the trailing commas don't seem nice in "undo". And the title, which we may not be able to reuse in all language

* Don't count cards that have already been removed (dae)
2024-08-29 20:06:41 +07:00
..
ankidroid.proto More service generation refactoring 2023-06-22 09:46:09 +10:00
ankihub.proto Integrate AnkiHub Sign-in (#3232) 2024-08-17 10:58:23 +07:00
ankiweb.proto Change Anki's version scheme; bump to 23.09 (#2640) 2023-09-07 12:37:15 +10:00
backend.proto Add support for custom certificates (#3203) 2024-05-24 10:57:54 +01:00
card_rendering.proto Move anki.utils.html_to_text_line() to backend (#2816) 2023-11-09 09:57:23 +10:00
cards.proto Empty cards become undoable (#3386) 2024-08-29 20:06:41 +07:00
collection.proto Show total review count when optimizing FSRS parameters (#3027) 2024-02-26 13:27:22 +07:00
config.proto load balancer! (#3230) 2024-08-17 12:50:54 +07:00
deck_config.proto Feature Show Reminder before answer (#3064) (#3119) 2024-04-13 08:39:50 +01:00
decks.proto Use seconds instead of minutes for preview delay 2023-12-21 11:02:29 +10:00
frontend.proto Improve presentation of importing results (#2568) 2023-08-02 20:29:44 +10:00
generic.proto Add java_multiple_files option to proto files 2022-06-27 15:16:04 +10:00
i18n.proto More service generation refactoring 2023-06-22 09:46:09 +10:00
image_occlusion.proto Maintain original IO cloze order in editing mode (#2987) 2024-02-07 13:42:47 +10:00
import_export.proto Allow im-/exporting with or without deck configs (#2804) 2023-11-13 13:54:41 +10:00
links.proto Rework error dialog 2023-11-29 10:25:32 +10:00
media.proto Add a backend method to extract static media references (#2716) 2023-10-11 14:10:02 +10:00
notes.proto Add a backend method to add notes in bulk (#2659) 2023-09-16 13:51:32 +10:00
notetypes.proto Add image occlusion to stock notetypes 2023-10-22 11:00:39 +10:00
scheduler.proto Feat/FSRS-5 (#3298) 2024-07-21 21:02:24 +07:00
search.proto Invalid sorting (#2709) 2023-10-07 06:36:15 +00:00
stats.proto Show preset and original deck in card info (#3055) 2024-03-07 07:47:55 +00:00
sync.proto Add support for custom certificates (#3203) 2024-05-24 10:57:54 +01:00
tags.proto More service generation refactoring 2023-06-22 09:46:09 +10:00