mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
added option to clear callbacks
This commit is contained in:
parent
5d982ab5e2
commit
febeff61e7
1 changed files with 4 additions and 0 deletions
|
|
@ -566,6 +566,10 @@ class EventSystem:
|
|||
|
||||
self._process_event(event)
|
||||
|
||||
def clear_callbacks(self):
|
||||
"""Clear all registered callbacks."""
|
||||
self._registered_callbacks = []
|
||||
|
||||
def _process_event(self, event):
|
||||
"""Process event topic and trigger callbacks.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue