e364b36dc4
Up until now, we've been forcing a new search whenever reset is called. The primary reason was that the card list display routines did not expect a card or note to have been removed. By updating the model to show "(deleted)" when a card or note is missing, we no longer have to repeat the search. This has a few advantages: - Searches, especially complex ones, can be slow to execute. When we perform them after every operation like a delete, it can make Anki feel sluggish. - The fact that notes have been deleted becomes more obvious - some users found it easy to miss the "deleted" pop-up in the past. This change does not just affect deletions, as many other operations trigger a reset as well. In the past, when using 'set due date' in the review screen for example, it caused an ugly flicker in the browser screen, and could be slow when the current search couldn't be quickly redone. The disadvantage of this approach is that the displayed content may not reflect the specified search, which has the potential to be confusing. But if that turns out to be a problem, it could be (partly) alleviated by displaying a refresh button next to the search bar when the search may need to be refreshed. Feedback welcome! |
||
---|---|---|
.. | ||
core | ||
qt | ||
BUILD.bazel | ||
duplicate-string.py | ||
extract-strings.py | ||
format_check.py | ||
format.py | ||
README.md | ||
sync.py | ||
transform-string.py |
Files related to Anki's translations.
Please see https://translating.ankiweb.net/#/anki/developers