mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +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:
|
def is_checkbox_enabled(self) -> bool:
|
||||||
"""Checkbox can be changed by user."""
|
"""Checkbox can be changed by user."""
|
||||||
return (
|
return (
|
||||||
self._parent_is_active
|
self._used_parent_active()
|
||||||
and not self._is_mandatory
|
and not self._is_mandatory
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -248,7 +248,7 @@ class InstanceListItemWidget(QtWidgets.QWidget):
|
||||||
def is_parent_active(self) -> bool:
|
def is_parent_active(self) -> bool:
|
||||||
return self._parent_is_active
|
return self._parent_is_active
|
||||||
|
|
||||||
def _used_parent_active(self):
|
def _used_parent_active(self) -> bool:
|
||||||
parent_enabled = True
|
parent_enabled = True
|
||||||
if self._parent_flags & ParentFlags.share_active:
|
if self._parent_flags & ParentFlags.share_active:
|
||||||
parent_enabled = self._parent_is_active
|
parent_enabled = self._parent_is_active
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue