mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
Add support for optional_tooltip attribute on OptionalPyblishPluginMixin
This commit is contained in:
parent
34fbf681e0
commit
ca03c4d86d
1 changed files with 4 additions and 1 deletions
|
|
@ -304,8 +304,11 @@ class OptionalPyblishPluginMixin(AYONPyblishPluginMixin):
|
||||||
active = getattr(cls, "active", True)
|
active = getattr(cls, "active", True)
|
||||||
# Return boolean stored under 'active' key with label of the class name
|
# Return boolean stored under 'active' key with label of the class name
|
||||||
label = cls.label or cls.__name__
|
label = cls.label or cls.__name__
|
||||||
|
# Allow exposing tooltip from class with `optional_tooltip` attribute
|
||||||
|
tooltip = getattr(cls, "optional_tooltip", None)
|
||||||
|
|
||||||
return [
|
return [
|
||||||
BoolDef("active", default=active, label=label)
|
BoolDef("active", default=active, label=label, tooltip=tooltip)
|
||||||
]
|
]
|
||||||
|
|
||||||
def is_active(self, data):
|
def is_active(self, data):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue