mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
fix loader tool grouping with status filtering
This commit is contained in:
parent
f4eb054a9d
commit
28bff3a9d0
1 changed files with 7 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue