mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 13:52:15 +01:00
base handler checks for ignore_me before registering
This commit is contained in:
parent
24974b6dab
commit
6318d233e4
1 changed files with 3 additions and 0 deletions
|
|
@ -26,6 +26,7 @@ class BaseHandler(object):
|
|||
priority = 100
|
||||
# Type is just for logging purpose (e.g.: Action, Event, Application,...)
|
||||
type = 'No-type'
|
||||
ignore_me = False
|
||||
preactions = []
|
||||
|
||||
def __init__(self, session):
|
||||
|
|
@ -41,6 +42,8 @@ class BaseHandler(object):
|
|||
def register_decorator(self, func):
|
||||
@functools.wraps(func)
|
||||
def wrapper_register(*args, **kwargs):
|
||||
if self.ignore_me:
|
||||
return
|
||||
label = self.__class__.__name__
|
||||
if hasattr(self, 'label'):
|
||||
if self.variant is None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue