Arthur-Milchior / anki-Multi-column-edit-window

Alllow the editor to have to have multiple columns
6 stars 2 forks source link

Not compatible with night mode #7

Open tonyo96 opened 4 years ago

tonyo96 commented 4 years ago

Everything works when night mode is enabled but not applied, after applying it Anki gives the following error messages when I try to open the browser or the add card dialog:

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, repeating 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.12 (eef86bf3) Python 3.6.7 Qt 5.12.1 PyQt 5.11.3 Platform: Windows 10 Flags: frz=True ao=True sv=1

Caught exception: File "aqt\webview.py", line 27, in cmd File "aqt\webview.py", line 85, in _onCmd File "aqt\webview.py", line 363, in _onBridgeCmd File "aqt\toolbar.py", line 56, in _linkHandler File "aqt\toolbar.py", line 71, in _addLinkHandler File "aqt\main.py", line 853, in onAddCard File "aqt__init.py", line 82, in open File "", line 2, in init__ File "anki\hooks.py", line 74, in decorator_wrapper File "anki\hooks.py", line 65, in repl File "aqt\addcards.py", line 29, in init File "aqt\addcards.py", line 123, in onReset File "aqt\addcards.py", line 81, in setAndFocusNote File "C:\Users\tonyo\AppData\Roaming\Anki2\addons21\2064123047\multiColumnEdit.py", line 84, in setNote if self.modelChanged: <class 'AttributeError'>: 'Editor' object has no attribute 'modelChanged'

Arthur-Milchior commented 4 years ago

Can you confirm you are speaking of the add-on 1496166067 ? I'm extremely sorry if so. I really have trouble understanding this add-on. It uses a lot of advanced python I don't know. It would take me quite some time to try to repair this. Right now I don't have time for it. :s

tonyo96 commented 4 years ago

Yes, it is 1496166067. I have 0 experience with addons but I tried to fix it with a simple try-except, just to see what happens. The error is gone, but none of the two add-ons work (displays a white window with a single column). Strange