mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +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)
|
||||
# Return boolean stored under 'active' key with label of the class name
|
||||
label = cls.label or cls.__name__
|
||||
# Allow exposing tooltip from class with `optional_tooltip` attribute
|
||||
tooltip = getattr(cls, "optional_tooltip", None)
|
||||
|
||||
return [
|
||||
BoolDef("active", default=active, label=label)
|
||||
BoolDef("active", default=active, label=label, tooltip=tooltip)
|
||||
]
|
||||
|
||||
def is_active(self, data):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue