ccz-2 / Anki-Zoom

Zoom addon for Anki | Forked from https://github.com/krassowski/Anki-Zoom
https://ankiweb.net/shared/info/538879081
GNU General Public License v3.0
6 stars 5 forks source link

Anki 2.1.50 compatibility #18

Open rwmpelstilzchen opened 2 years ago

rwmpelstilzchen commented 2 years ago

Anki Zoom worked fine in 2.1.49, but in 2.1.50 it produces an error message.

mobedoor commented 2 years ago

Here

rwmpelstilzchen commented 2 years ago

Thank! :-)

If I am not mistaken, while it does not show the error message, it still does not work well because of this: zooming in on a card affects the deck browser.

GrimPixel commented 2 years ago

@rwmpelstilzchen Paste your error message next time.

An add-on you installed failed to load. If problems persist, please go to the Tools>Add-ons menu, and disable or delete the add-on.

When loading '⁨Anki Zoom⁩': ⁨Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/aqt/addons.py", line 244, in loadAddons import(addon.dir_name) File "/home/grim/.local/share/Anki2/addons21/538879081/init.py", line 169, in setup_menu() File "/home/grim/.local/share/Anki2/addons21/538879081/init.py", line 146, in setup_menu mw.addon_view_menu = getMenu(mw, "&View") File "/home/grim/.local/share/Anki2/addons21/538879081/toolbar.py", line 12, in getMenu menu = a.menu() AttributeError: 'QAction' object has no attribute 'menu'

rwmpelstilzchen commented 2 years ago

@GrimPixel: Yeah, that would be more helpful.

CyberPsyLen commented 2 years ago

I find the same. Since updating to Anki Version ⁨2.1.54 (b6a7760c) - using Mac M1 Silicon⁩, this addon throws error below. I didn't realise how much I needed this addon until I didn't have it!

Error An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed. If the issue only occurs when add-ons are enabled, please use the Tools>Add-ons menu item to disable some add-ons and restart Anki, repeat until you discover the add-on that is causing the problem. When you've discovered the add-on that is causing the problem, please report the issue on the add-ons section of our support site. Debug info: Anki 2.1.54 (b6a7760c) Python 3.9.7 Qt 6.3.1 PyQt 6.3.1 Platform: Mac 11.3 Flags: frz=True ao=True sv=2 Add-ons, last update check: 2022-07-27 12:52:28 Add-ons possibly involved: ⁨538879081⁩

Caught exception: Traceback (most recent call last): File "decorator", line 232, in fun File "anki.hooks", line 89, in decorator_wrapper File "anki.hooks", line 83, in repl File "/Users/cyberpsylen/Library/Application Support/Anki2/addons21/538879081/init.py", line 110, in AnkiWebView_eventFilter_wrapper NameError: name 'scrl_threshold' is not defined