Vocab-Apps / anki-language-tools

Anki Language Tools addon
GNU General Public License v3.0
6 stars 0 forks source link

crashing when closing the edit modal before the audio generates #14

Closed mrderiuzz closed 3 years ago

mrderiuzz commented 3 years ago

as in the title, when I'm in review mode, then click 'e' to edit the card, change a field (that is supposed to auto generate audio) and then click escape quickly, then I get an error. This is somewhat expected because the audio will not generate that fast but it just simply should not be an error (or maybe a warning instead, like "You want to exit editing mode without updating audio, are you sure?")

image

luc-vocab commented 3 years ago

Thanks for reporting this. I'll look into such a warning message. Alternatively, would it help if there was an indicator that the audio is loading ?

mrderiuzz commented 3 years ago

yeah, loading indicator sounds good

luc-vocab commented 3 years ago

The crash should be fixed in v1.6, just released, thanks for reporting. Loading indicator is not yet done, let me create a separate issue.