Skip to content

Commit

Permalink
Add support for optional_tooltip attribute on `OptionalPyblishPlugi…
Browse files Browse the repository at this point in the history
…nMixin`
  • Loading branch information
BigRoy committed Jan 30, 2025
1 parent 34fbf68 commit ca03c4d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/ayon_core/pipeline/publish/publish_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,11 @@ def get_attribute_defs(cls):
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):
Expand Down

0 comments on commit ca03c4d

Please sign in to comment.