de668441b5
- 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 |
||
---|---|---|
.. | ||
actions.ftl | ||
adding.ftl | ||
browsing.ftl | ||
card-stats.ftl | ||
card-template-rendering.ftl | ||
card-templates.ftl | ||
custom-study.ftl | ||
database-check.ftl | ||
deck-config.ftl | ||
decks.ftl | ||
editing.ftl | ||
empty-cards.ftl | ||
errors.ftl | ||
exporting.ftl | ||
fields.ftl | ||
findreplace.ftl | ||
importing.ftl | ||
media-check.ftl | ||
media.ftl | ||
network.ftl | ||
notetypes.ftl | ||
preferences.ftl | ||
profiles.ftl | ||
scheduling.ftl | ||
search.ftl | ||
statistics.ftl | ||
studying.ftl | ||
sync.ftl | ||
undo.ftl |