mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Set config values on all items in group
This commit is contained in:
parent
9bd36c2570
commit
cc7668d32b
1 changed files with 11 additions and 1 deletions
|
|
@ -553,6 +553,8 @@ class ActionsWidget(QtWidgets.QWidget):
|
|||
if not config_fields:
|
||||
return
|
||||
|
||||
is_group = index.data(ACTION_IS_GROUP_ROLE)
|
||||
|
||||
project_name = self._model.get_selected_project_name()
|
||||
folder_id = self._model.get_selected_folder_id()
|
||||
task_id = self._model.get_selected_task_id()
|
||||
|
|
@ -579,7 +581,15 @@ class ActionsWidget(QtWidgets.QWidget):
|
|||
if result != QtWidgets.QDialog.Accepted:
|
||||
return
|
||||
new_values = dialog.get_values()
|
||||
self._controller.set_action_config_values(context, new_values)
|
||||
if is_group:
|
||||
action_items = self._model.get_group_items(action_id)
|
||||
action_ids = [item.identifier for item in action_items]
|
||||
else:
|
||||
action_ids = [action_id]
|
||||
|
||||
for action_id in action_ids:
|
||||
context.identifier = action_id
|
||||
self._controller.set_action_config_values(context, new_values)
|
||||
|
||||
def _create_attrs_dialog(
|
||||
self,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue