Merge branch 'develop' into enhancement/1294-product-base-types-support-in-loading

This commit is contained in:
Ondřej Samohel 2025-06-13 16:41:33 +02:00 committed by GitHub
commit 1a39308e58
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
25 changed files with 1873 additions and 714 deletions

View file

@ -84,15 +84,17 @@ def _get_options(action, action_item, parent):
if not getattr(action, "optioned", False) or not options:
return {}
dialog_title = action.label + " Options"
if isinstance(options[0], AbstractAttrDef):
qargparse_options = False
dialog = AttributeDefinitionsDialog(options, parent)
dialog = AttributeDefinitionsDialog(
options, title=dialog_title, parent=parent
)
else:
qargparse_options = True
dialog = OptionDialog(parent)
dialog.create(options)
dialog.setWindowTitle(action.label + " Options")
dialog.setWindowTitle(dialog_title)
if not dialog.exec_():
return None