Skip to content

Commit

Permalink
handle double barrelled feature names correctly
Browse files Browse the repository at this point in the history
'system-tray' and 'file-transfer' settings were not reloaded properly,
because the configuration object uses attributes which have to use an underscore..
  • Loading branch information
totaam committed May 4, 2024
1 parent b2f9276 commit a399fce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xpra/gtk/configure/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a399fce

Please sign in to comment.