mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
sort actions at different place
This commit is contained in:
parent
a22f378ed5
commit
db764619fc
1 changed files with 3 additions and 3 deletions
|
|
@ -97,11 +97,13 @@ class LoaderActionsModel:
|
|||
repre_context_by_id
|
||||
) = self._contexts_for_versions(project_name, entity_ids)
|
||||
|
||||
return self._get_action_items_for_contexts(
|
||||
action_items = self._get_action_items_for_contexts(
|
||||
project_name,
|
||||
version_context_by_id,
|
||||
repre_context_by_id
|
||||
)
|
||||
action_items.sort(key=self._actions_sorter)
|
||||
return action_items
|
||||
|
||||
def trigger_action_item(
|
||||
self,
|
||||
|
|
@ -706,8 +708,6 @@ class LoaderActionsModel:
|
|||
"version",
|
||||
)
|
||||
action_items.append(item)
|
||||
|
||||
action_items.sort(key=self._actions_sorter)
|
||||
return action_items
|
||||
|
||||
def _trigger_version_loader(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue