-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Empty cards become undoable #3386
Conversation
f7fb0e4
to
f17f0cb
Compare
I guess the failures are:
I don't understand this failure. I guess it's a question of comparing upper/lower case. Except that in the contribtuors file, I'm listed as |
f17f0cb
to
f7fab92
Compare
@Arthur-Milchior This should be resolved if you make a whitespace change to https://github.com/ankitects/anki/blob/main/CONTRIBUTORS
|
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
fb8dba9
to
01f4426
Compare
I changed the configuartion in git locally. Hope it'll solve it. |
It was working previously, the build failure was due to a |
Thanks Arthur! I can't recall any reason why this was deliberately omitted - I think it was probably just not a high priority when undo support was originally added to the codebase. |
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