mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 22:13:58 -05:00
Add a hook to browser.onContextMenu for add-on authors
This will grant add-on authors more flexibility in implementing custom context menu actions.
This commit is contained in:
parent
9a0a3a2674
commit
f0f1efd73d
1 changed files with 1 additions and 0 deletions
|
|
@ -461,6 +461,7 @@ class Browser(QMainWindow):
|
|||
m.addSeparator()
|
||||
for act in self.form.menu_Notes.actions():
|
||||
m.addAction(act)
|
||||
runHook("browser.onContextMenu", self, m)
|
||||
m.exec_(QCursor.pos())
|
||||
|
||||
def updateFont(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue