anki/ftl
Damien Elmes de668441b5 clear_unused_tags and browser redraw improvements
- 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
2021-03-19 19:45:21 +10:00
..
core clear_unused_tags and browser redraw improvements 2021-03-19 19:45:21 +10:00
qt experiment with replacing requireReset with updates on focus-in 2021-03-19 19:45:21 +10:00
BUILD.bazel update duplicate-string and copy 'set due date' in from AnkiMobile 2021-02-07 13:56:11 +10:00
duplicate-string.py handle case when .ftl file doesn't exist yet 2021-03-04 11:03:09 +10:00
extract-strings.py move other i18n scripts to ftl/ 2020-11-22 15:41:14 +10:00
format_check.py automatically format/check ftl files 2020-11-22 15:30:59 +10:00
format.py fix ftl check failing in non-utf8 locale 2021-01-19 16:28:13 +10:00
README.md move other i18n scripts to ftl/ 2020-11-22 15:41:14 +10:00
sync.py update translations 2021-01-14 10:16:22 +10:00
transform-string.py remove format separator from recording string 2020-12-16 19:44:47 +10:00

Files related to Anki's translations.

Please see https://translating.ankiweb.net/#/anki/developers