lovac42 / Blitzkrieg

AnkiAddon: Advanced Browser Sidebar
GNU Affero General Public License v3.0
21 stars 3 forks source link

Addon stops functioning with Night Mode enabled. #1

Closed ghost closed 5 years ago

ghost commented 5 years ago

As mentioned, in night mode all functionality of the addon disappears as in the screenshots image image

lovac42 commented 5 years ago

Thanks for reporting this. The ankiweb id number is larger than night mode's, so it ran into the same issue as all the other addons as described here: https://ankiweb.net/shared/info/536247578

Night Mode Conflict Resolution:
NM uses a unique method of patching into Anki that causes problem for ALL addons. Just make sure it loads last after all other addons have been loaded by changing it's folder name with a 'z' prefix. z828472. Or change this addon's folder name with an 'a' prefix a536247578. But changing folder names will prevent updates notifications, so it is far better to change nightmode as it screws up all other addons.

I could fix this the same way krassowski fixed it for touch screen, but it causes the two addons to fight for control with intermittent freezing issues on Windows. So the best way to fix it is simply to rename the addon folder ensuring that NM is loaded last before all the other addons.

ghost commented 5 years ago

Thank you. Works perfectly now.