mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
Use new OpenPype Event System implemented with #2846
This commit is contained in:
parent
9bb5626224
commit
0941c186df
1 changed files with 2 additions and 1 deletions
|
|
@ -6,6 +6,7 @@ from avalon import api
|
|||
from openpype.tools.utils import host_tools
|
||||
|
||||
from openpype.style import load_stylesheet
|
||||
from openpype.lib import register_event_callback
|
||||
from openpype.hosts.fusion.scripts import (
|
||||
set_rendermode,
|
||||
duplicate_with_inputs
|
||||
|
|
@ -133,7 +134,7 @@ class OpenPypeMenu(QtWidgets.QWidget):
|
|||
fn()
|
||||
|
||||
self._callbacks.append(_callback)
|
||||
api.on(name, _callback)
|
||||
register_event_callback(name, _callback)
|
||||
|
||||
def deregister_all_callbacks(self):
|
||||
self._callbacks[:] = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue