mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
convert pinned projects to pinned set
This commit is contained in:
parent
a785ea20e9
commit
68d9fc16ad
1 changed files with 1 additions and 0 deletions
|
|
@ -441,6 +441,7 @@ class ProjectsModel(object):
|
|||
.get("frontendPreferences", {})
|
||||
.get("pinnedProjects")
|
||||
) or []
|
||||
pinned_projects = set(pinned_projects)
|
||||
project_items = _get_project_items_from_entitiy(list(projects))
|
||||
for project in project_items:
|
||||
project.is_pinned = project.name in pinned_projects
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue