From a399fce7959141a7bb6c4ca068a99d006e5286bb Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Sat, 4 May 2024 22:24:23 +0700 Subject: [PATCH] handle double barrelled feature names correctly 'system-tray' and 'file-transfer' settings were not reloaded properly, because the configuration object uses attributes which have to use an underscore.. --- xpra/gtk/configure/features.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xpra/gtk/configure/features.py b/xpra/gtk/configure/features.py index cd0c2caf2c..8bd6334adb 100644 --- a/xpra/gtk/configure/features.py +++ b/xpra/gtk/configure/features.py @@ -92,7 +92,7 @@ def populate(self): def configure_switches(self, defaults): for subsystem, switch in self.subsystem_switch.items(): - value = getattr(defaults, subsystem, None) + value = getattr(defaults, subsystem.replace("-", "_"), None) log(f"configure_switches: {subsystem}={value}") enabled = str_to_bool(value, False) switch.set_sensitive(True)