"editor_did_init" gui hook not found

br's Avatar

br

25 Mar, 2020 12:26 PM

Hi, version is 2.1.24.
When attempting to use gui_hooks.editor_did_init, I get
AttributeError: module 'aqt.gui_hooks' has no attribute 'editor_did_init'.
I double checked on correct syntax, and other editor hooks like 'editor_did_load_note' work.

Maybe that hook was removed? It is still listed there though: https://github.com/ankitects/anki/blob/master/qt/tools/genhooks_gui.py

  1. Support Staff 1 Posted by Damien Elmes on 25 Mar, 2020 11:04 PM

    Damien Elmes's Avatar

    It was only added a few days ago, after the latest beta was built.

  2. 2 Posted by br on 26 Mar, 2020 08:10 AM

    br's Avatar

    My bad, please regard as resolved.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac