local settings will skip applications without "executables" key

This commit is contained in:
iLLiCiTiT 2021-06-10 13:04:37 +02:00
parent 8fc0452438
commit f694275bc4
2 changed files with 8 additions and 1 deletions

View file

@ -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")

View file

@ -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
)