mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
OP-1906 - refactor - renamed progress role to availability role
Progress and Availability is different, one is in percentage, second one is for full presence
This commit is contained in:
parent
05983fc1eb
commit
b4ff20c01c
2 changed files with 8 additions and 8 deletions
|
|
@ -18,8 +18,8 @@ from openpype.modules import ModulesManager
|
|||
from openpype.tools.utils.constants import (
|
||||
LOCAL_PROVIDER_ROLE,
|
||||
REMOTE_PROVIDER_ROLE,
|
||||
LOCAL_PROGRESS_ROLE,
|
||||
REMOTE_PROGRESS_ROLE
|
||||
LOCAL_AVAILABILITY_ROLE,
|
||||
REMOTE_AVAILABILITY_ROLE
|
||||
)
|
||||
|
||||
|
||||
|
|
@ -728,13 +728,13 @@ class SubsetsModel(TreeModel, BaseRepresentationModel):
|
|||
if not version_doc["is_from_latest"]:
|
||||
return self.not_last_hero_brush
|
||||
|
||||
elif role == LOCAL_PROGRESS_ROLE:
|
||||
elif role == LOCAL_AVAILABILITY_ROLE:
|
||||
if not item.get("isGroup"):
|
||||
return item.get("repre_info_local")
|
||||
else:
|
||||
return None
|
||||
|
||||
elif role == REMOTE_PROGRESS_ROLE:
|
||||
elif role == REMOTE_AVAILABILITY_ROLE:
|
||||
if not item.get("isGroup"):
|
||||
return item.get("repre_info_remote")
|
||||
else:
|
||||
|
|
|
|||
|
|
@ -34,8 +34,8 @@ from . import lib
|
|||
from openpype.tools.utils.constants import (
|
||||
LOCAL_PROVIDER_ROLE,
|
||||
REMOTE_PROVIDER_ROLE,
|
||||
LOCAL_PROGRESS_ROLE,
|
||||
REMOTE_PROGRESS_ROLE
|
||||
LOCAL_AVAILABILITY_ROLE,
|
||||
REMOTE_AVAILABILITY_ROLE
|
||||
)
|
||||
|
||||
|
||||
|
|
@ -1608,8 +1608,8 @@ class AvailabilityDelegate(QtWidgets.QStyledItemDelegate):
|
|||
provider_active = index.data(LOCAL_PROVIDER_ROLE)
|
||||
provider_remote = index.data(REMOTE_PROVIDER_ROLE)
|
||||
|
||||
availability_active = index.data(LOCAL_PROGRESS_ROLE)
|
||||
availability_remote = index.data(REMOTE_PROGRESS_ROLE)
|
||||
availability_active = index.data(LOCAL_AVAILABILITY_ROLE)
|
||||
availability_remote = index.data(REMOTE_AVAILABILITY_ROLE)
|
||||
|
||||
if not availability_active or not availability_remote: # group lines
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue