From 6f3b194944502460422d0f06c02a7fd225387f58 Mon Sep 17 00:00:00 2001 From: ljf Date: Sat, 2 Sep 2023 22:47:02 +0200 Subject: [PATCH] [fix] Avoid char conflict with bind properties --- helpers/config | 4 ++-- src/utils/configpanel.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/helpers/config b/helpers/config index 5a41822cc..fbf7febaa 100644 --- a/helpers/config +++ b/helpers/config @@ -172,7 +172,7 @@ for panel_name, panel in loaded_toml.items(): if bind == "settings" and param.get('type', 'string') == 'file': bind = 'null' - print(';'.join([ + print('|'.join([ name, param.get('type', 'string'), bind @@ -181,7 +181,7 @@ EOL ) for line in $lines; do # Split line into short_setting, type and bind - IFS=';' read short_setting type bind <<<"$line" + IFS='|' read short_setting type bind <<<"$line" binds[${short_setting}]="$bind" types[${short_setting}]="$type" file_hash[${short_setting}]="" diff --git a/src/utils/configpanel.py b/src/utils/configpanel.py index 12024855a..cc93f888f 100644 --- a/src/utils/configpanel.py +++ b/src/utils/configpanel.py @@ -345,14 +345,14 @@ class ConfigPanel: "defaults": {"version": 1.0}, }, "panels": { - "properties": ["name", "services", "actions", "help"], + "properties": ["name", "services", "actions", "help", "bind"], "defaults": { "services": [], "actions": {"apply": {"en": "Apply"}}, }, }, "sections": { - "properties": ["name", "services", "optional", "help", "visible"], + "properties": ["name", "services", "optional", "help", "visible", "bind"], "defaults": { "name": "", "services": [],