mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
local settings will skip applications without "executables" key
This commit is contained in:
parent
8fc0452438
commit
f694275bc4
2 changed files with 8 additions and 1 deletions
|
|
@ -532,7 +532,11 @@ def apply_local_settings_on_system_settings(system_settings, local_settings):
|
|||
|
||||
variants = system_settings["applications"][app_group_name]["variants"]
|
||||
for app_name, app_value in value.items():
|
||||
if not app_value or app_name not in variants:
|
||||
if (
|
||||
not app_value
|
||||
or app_name not in variants
|
||||
or "executables" not in variants[app_name]
|
||||
):
|
||||
continue
|
||||
|
||||
executable = app_value.get("executable")
|
||||
|
|
|
|||
|
|
@ -121,6 +121,9 @@ class AppGroupWidget(QtWidgets.QWidget):
|
|||
|
||||
widgets_by_variant_name = {}
|
||||
for variant_name, variant_entity in valid_variants.items():
|
||||
if "executables" not in variant_entity:
|
||||
continue
|
||||
|
||||
variant_widget = AppVariantWidget(
|
||||
group_label, variant_name, variant_entity, content_widget
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue