mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
comparison of UILabelDef is comparing label value
This commit is contained in:
parent
e3d5352a27
commit
8a9a1e66f3
1 changed files with 5 additions and 0 deletions
|
|
@ -240,6 +240,11 @@ class UILabelDef(UIDef):
|
|||
def __init__(self, label):
|
||||
super(UILabelDef, self).__init__(label=label)
|
||||
|
||||
def __eq__(self, other):
|
||||
if not super(UILabelDef, self).__eq__(other):
|
||||
return False
|
||||
return self.label == other.label:
|
||||
|
||||
|
||||
# ---------------------------------------
|
||||
# Attribute defintioins should hold value
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue