Vocab-Apps / anki-language-tools

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

crash when changing deck name for which audio generation rules are set #12

Closed mrderiuzz closed 3 years ago

mrderiuzz commented 3 years ago

as in the title, I have a deck X for which I configured auto-generation of audio files. Then I change its name to Y and obviously these rules ceased to exist (perhaps they should)? Well anyways I wanted to reconfigure them and my anki is now crashing when I open the audio generation view:

image

luc-vocab commented 3 years ago

Thanks, let me try to take a look and fix this bug. Is it blocking you ? If yes, you can try to reset your config for Language Tools to the default config. But you will have to re-do language mapping, etc.

mrderiuzz commented 3 years ago

I actually managed to troubleshoot this in the meantime. This happens when language is not mapped for a given deck. I opened language mapping, did the automatic detection again and everything is back to normal :)

so probably there should be some kind of warning that there's no mapping for this deck

luc-vocab commented 3 years ago

I think this crash in particular happened before you didn't have any notes selected when you clicked the menu item.

mrderiuzz commented 3 years ago

oh that could be it. I also didn't have the languages mapped for this deck but happy to test it out in the update