mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
![]() - clear_unused_tags() is now undoable, and returns the number of removed notes - add a new mw.query_op() helper for immutable queries - decouple "freeze/unfreeze ui state" hooks from the "interface update required" hook, so that the former is fired even on error, and can be made re-entrant - use a 'block_updates' flag in Python, instead of setUpdatesEnabled(), as the latter has the side-effect of preventing child windows like tooltips from appearing, and forces a full redrawn when updates are enabled again. The new behaviour leads to the card list blanking out when a long-running op is running, but in the future if we cache the cell values we can just display them from the cache instead. - we were indiscriminately saving the note with saveNow(), due to the call to saveTags(). Changed so that it only saves when the tags field is focused. - drain the "on_done" queue on main before launching a new background task, to lower the chances of something in on_done making a small query to the DB and hanging until a long op finishes - the duplicate check in the editor was executed after the webview loads, leading to it hanging until the sidebar finishes loading. Run it at set_note() time instead, so that the editor loads first. - don't throw an error when a long-running op started with with_progress() finishes after the window it was launched from has closed - don't throw an error when the browser is closed before the sidebar has finished loading |
||
---|---|---|
.. | ||
_backend | ||
importing | ||
scheduler | ||
syncserver | ||
__init__.py | ||
BUILD.bazel | ||
buildinfo.py | ||
cards.py | ||
collection.py | ||
config.py | ||
consts.py | ||
db.py | ||
dbproxy.py | ||
decks.py | ||
errors.py | ||
exporting.py | ||
find.py | ||
hooks.py | ||
hooks_gen.py | ||
httpclient.py | ||
lang.py | ||
latex.py | ||
media.py | ||
models.py | ||
notes.py | ||
py.typed | ||
rsbackend.py | ||
sound.py | ||
stats.py | ||
statsbg.py | ||
stdmodels.py | ||
storage.py | ||
sync.py | ||
tags.py | ||
template.py | ||
types.py | ||
utils.py | ||
wheel_description.txt |