anki/ftl/core
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
..
actions.ftl Remove edit mode 2021-03-08 11:55:15 +01:00
adding.ftl move ftl into top level ftl/ folder; make it source of truth for aqt 2020-11-18 16:20:58 +10:00
browsing.ftl clear_unused_tags and browser redraw improvements 2021-03-19 19:45:21 +10:00
card-stats.ftl automatically format/check ftl files 2020-11-22 15:30:59 +10:00
card-template-rendering.ftl automatically format/check ftl files 2020-11-22 15:30:59 +10:00
card-templates.ftl update remaining python format strings to Fluent 2020-11-22 14:57:53 +10:00
custom-study.ftl move ftl into top level ftl/ folder; make it source of truth for aqt 2020-11-18 16:20:58 +10:00
database-check.ftl move ftl into top level ftl/ folder; make it source of truth for aqt 2020-11-18 16:20:58 +10:00
deck-config.ftl add markdown flag for deck description 2021-02-09 18:47:19 +10:00
decks.ftl Remove prompt when deleting from deckbrowser 2021-03-11 10:28:23 +01:00
editing.ftl move ftl into top level ftl/ folder; make it source of truth for aqt 2020-11-18 16:20:58 +10:00
empty-cards.ftl automatically format/check ftl files 2020-11-22 15:30:59 +10:00
errors.ftl catch attempts to nest under a filtered deck; don't show traceback 2021-03-01 09:58:12 +10:00
exporting.ftl automatically format/check ftl files 2020-11-22 15:30:59 +10:00
fields.ftl fix ftl formatting 2021-01-04 13:27:35 +10:00
findreplace.ftl automatically format/check ftl files 2020-11-22 15:30:59 +10:00
importing.ftl update remaining python format strings to Fluent 2020-11-22 14:57:53 +10:00
media-check.ftl avoid using literal 1 in English translations 2020-12-18 10:14:19 +10:00
media.ftl remove format separator from recording string 2020-12-16 19:44:47 +10:00
network.ftl automatically format/check ftl files 2020-11-22 15:30:59 +10:00
notetypes.ftl automatically format/check ftl files 2020-11-22 15:30:59 +10:00
preferences.ftl rework v2 scheduler upgrade; drop downgrade 2021-02-21 15:50:41 +10:00
profiles.ftl Set up default language before loading profile 2020-11-21 05:29:23 +03:00
scheduling.ftl fix 'forgot card' translation string 2021-03-10 12:03:37 +10:00
search.ftl Add button in dynDeckConf to search in browser 2021-02-01 13:55:03 +01:00
statistics.ftl show actual error when graphData fails 2021-01-29 14:39:05 +10:00
studying.ftl automatically format/check ftl files 2020-11-22 15:30:59 +10:00
sync.ftl automatically format/check ftl files 2020-11-22 15:30:59 +10:00
undo.ftl more reset refactoring 2021-03-19 19:45:21 +10:00