mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
fix 'is_checkbox_enabled'
This commit is contained in:
parent
ed6fd25a04
commit
1ef49e4d08
1 changed files with 2 additions and 2 deletions
|
|
@ -196,7 +196,7 @@ class InstanceListItemWidget(QtWidgets.QWidget):
|
|||
def is_checkbox_enabled(self) -> bool:
|
||||
"""Checkbox can be changed by user."""
|
||||
return (
|
||||
self._parent_is_active
|
||||
self._used_parent_active()
|
||||
and not self._is_mandatory
|
||||
)
|
||||
|
||||
|
|
@ -248,7 +248,7 @@ class InstanceListItemWidget(QtWidgets.QWidget):
|
|||
def is_parent_active(self) -> bool:
|
||||
return self._parent_is_active
|
||||
|
||||
def _used_parent_active(self):
|
||||
def _used_parent_active(self) -> bool:
|
||||
parent_enabled = True
|
||||
if self._parent_flags & ParentFlags.share_active:
|
||||
parent_enabled = self._parent_is_active
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue