Skip to content

Commit

Permalink
refactor: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
midrare committed Feb 19, 2024
1 parent c5d9f53 commit 8ccb353
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,14 +327,10 @@ def _on_editor_will_show_context_menu(
menu.addAction("Edit")


def init_hooks():
def init_addon():
assert aqt.mw, 'no main window'
aqt.mw.addonManager.setWebExports(__name__, r".*\.(css|js|bmp|png)")
# aqt.gui_hooks.editor_will_show_context_menu.append(
# _on_editor_will_show_context_menu)
aqt.gui_hooks.editor_will_process_mime.append(_on_editor_will_process_mime)
aqt.gui_hooks.webview_will_set_content.append(_on_webview_will_set_content)


def init_addon():
init_hooks()

0 comments on commit 8ccb353

Please sign in to comment.