From 1ef49e4d08f157860f1b673b5f16683cdf1f7e5b Mon Sep 17 00:00:00 2001 From: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com> Date: Tue, 29 Jul 2025 15:37:37 +0200 Subject: [PATCH] fix 'is_checkbox_enabled' --- client/ayon_core/tools/publisher/widgets/list_view_widgets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/ayon_core/tools/publisher/widgets/list_view_widgets.py b/client/ayon_core/tools/publisher/widgets/list_view_widgets.py index 4dc7bf1322..f0fb5dcf82 100644 --- a/client/ayon_core/tools/publisher/widgets/list_view_widgets.py +++ b/client/ayon_core/tools/publisher/widgets/list_view_widgets.py @@ -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