From b47d2c7476736341fce9ffb2ad90f8872486c3df Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Tue, 6 Dec 2022 23:21:28 +0100 Subject: [PATCH] Clarify the thing about current_value vs value --- src/utils/config.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/config.py b/src/utils/config.py index 8e7db6d23..7e414ac9b 100644 --- a/src/utils/config.py +++ b/src/utils/config.py @@ -653,6 +653,7 @@ class ConfigPanel: value = self.values[option["name"]] # Allow to use value instead of current_value in app config script. + # e.g. apps may write `echo 'value: "foobar"'` in the config file (which is more intuitive that `echo 'current_value: "foobar"'` # For example hotspot used it... # See https://github.com/YunoHost/yunohost/pull/1546 if isinstance(value, dict) and "value" in value and "current_value" not in value: