Skip to content

Commit

Permalink
Use qconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
RisingOrange committed Jan 14, 2025
1 parent 64be045 commit 5c20636
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ankihub/gui/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def setup_ankihub_menu() -> None:
menu_state.ankihub_menu = QMenu("&AnkiHub", parent=aqt.mw)
aqt.mw.form.menubar.addMenu(menu_state.ankihub_menu)

menu_state.ankihub_menu.aboutToShow.connect(refresh_ankihub_menu)
qconnect(menu_state.ankihub_menu.aboutToShow, refresh_ankihub_menu)


def refresh_ankihub_menu() -> None:
Expand Down

0 comments on commit 5c20636

Please sign in to comment.