Closed lgaborini closed 6 years ago
Thanks for the fast fix! I'll upload it to AnkiWeb later.
Uploaded to AnkiWeb: https://ankiweb.net/shared/info/1214357311
Great!
However, I am no longer able to open the configuration window using the uploaded add-on.
The ID must be also added to the setConfigAction
method:
mw.addonManager.setConfigAction('1214357311', self._settings)
That's weird, I have no problem opening the config window. And I just checked the Anki2.1 source code, the first parameter of setConfigAction
was just a key to the addon settings, so it didn't matter whether it was ImageResizer
or 1214357311
.
I'm using Linux, which operating system are you using? Did changing the first parameter to the addon ID work for you?
I'm on Windows, it works with that fix!
I re-downloaded the add-on from the website, deleting and recreating the settings. The first parameter matches the directory name in the add-on directory (all add-ons are named like their IDs).
I guess that the bundled Python imports modules from the add-on directory, by using the IDs as aliases.
Hi lgaborini, I've changed the first parameter to the addon id and updated it on AnkiWeb, could you have a check and make sure it works on Windows? Thanks!
I confirm it works! Thank you!
That's great, thanks for making this addon better!
Thanks for making this addon! 😄
Now drag & dropped images (local files) are correctly resized.