From 28bff3a9d0215ac5ffaeff593250ee40313cca2b Mon Sep 17 00:00:00 2001 From: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com> Date: Wed, 17 Jul 2024 17:41:23 +0200 Subject: [PATCH] fix loader tool grouping with status filtering --- client/ayon_core/tools/loader/ui/products_model.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/client/ayon_core/tools/loader/ui/products_model.py b/client/ayon_core/tools/loader/ui/products_model.py index 734be5dd90..9fc89f5fb3 100644 --- a/client/ayon_core/tools/loader/ui/products_model.py +++ b/client/ayon_core/tools/loader/ui/products_model.py @@ -127,6 +127,7 @@ class ProductsModel(QtGui.QStandardItemModel): self._last_project_name = None self._last_folder_ids = [] + self._last_status_names = None self._last_project_statuses = {} self._last_status_icons_by_name = {} @@ -165,7 +166,11 @@ class ProductsModel(QtGui.QStandardItemModel): return self._grouping_enabled = enable_grouping # Ignore change if groups are not available - self.refresh(self._last_project_name, self._last_folder_ids) + self.refresh( + self._last_project_name, + self._last_folder_ids, + self._last_status_names + ) def flags(self, index): # Make the version column editable @@ -459,6 +464,7 @@ class ProductsModel(QtGui.QStandardItemModel): self._last_project_name = project_name self._last_folder_ids = folder_ids + self._last_status_names = status_names status_items = self._controller.get_project_status_items(project_name) self._last_project_statuses = { status_item.name: status_item