scottgigante / korean-support

Anki add-on providing support for Korean study
https://ankiweb.net/shared/info/1336389630
GNU General Public License v3.0
19 stars 5 forks source link

Run loadMenu hook only on gui start, not on every profile load #44

Closed Kiina closed 7 months ago

Kiina commented 7 months ago

Currently the menu hook runs on every profile switch which means you end up with something like this when you switch profiles a few times:

Screenshot 2024-02-23 150020

Changed it to use the main_window_did_init hook which only runs once. These hooks were introduced in Anki 2.1.20 which came out 4 years ago so the minimum version on ankiweb might need to be changed.

scottgigante commented 7 months ago

Thanks!