From 3952db0fe5f2c9730dd75c00187e3be2a24ab91a Mon Sep 17 00:00:00 2001 From: Maurizio Lombardi Date: Fri, 27 Feb 2026 15:29:39 +0100 Subject: [PATCH] Fix global parameters not persisted when set Call prefs.save() from ui_setgroup_global() so that "set global ..." writes updated values to the preferences file. Without this, the change only applied in memory and was lost when the process exited, so a subsequent "get global ..." (e.g. auto_use_daemon) still showed the old value. Signed-off-by: Maurizio Lombardi --- src/targetcli/ui_node.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/targetcli/ui_node.py b/src/targetcli/ui_node.py index dc9ff84..e1a33ee 100644 --- a/src/targetcli/ui_node.py +++ b/src/targetcli/ui_node.py @@ -105,6 +105,7 @@ def ui_command_status(self): def ui_setgroup_global(self, parameter, value): ConfigNode.ui_setgroup_global(self, parameter, value) + self.shell.prefs.save() self.get_root().refresh() def ui_type_yesno(self, value=None, enum=False, reverse=False):