summaryrefslogtreecommitdiffstats
path: root/config/chroot_local-includes
diff options
context:
space:
mode:
Diffstat (limited to 'config/chroot_local-includes')
-rw-r--r--config/chroot_local-includes/usr/lib/python3/dist-packages/tailsgreeter/ui/additional_settings.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/config/chroot_local-includes/usr/lib/python3/dist-packages/tailsgreeter/ui/additional_settings.py b/config/chroot_local-includes/usr/lib/python3/dist-packages/tailsgreeter/ui/additional_settings.py
index 543d60b..08b774c 100644
--- a/config/chroot_local-includes/usr/lib/python3/dist-packages/tailsgreeter/ui/additional_settings.py
+++ b/config/chroot_local-includes/usr/lib/python3/dist-packages/tailsgreeter/ui/additional_settings.py
@@ -208,6 +208,12 @@ class MACSpoofSettingUI(AdditionalSetting):
except SettingNotFoundError:
raise
+ # Select the correct listboxrow (used in the popover)
+ if value:
+ self.listbox_macspoof_controls.select_row(self.listboxrow_macspoof_on)
+ else:
+ self.listbox_macspoof_controls.select_row(self.listboxrow_macspoof_off)
+
if self.spoofing_enabled == value:
return False
@@ -279,6 +285,14 @@ class NetworkSettingUI(AdditionalSetting):
except SettingNotFoundError:
raise
+ # Select the correct listboxrow (used in the popover)
+ if value == NETCONF_DIRECT:
+ self.listbox_network_controls.select_row(self.listboxrow_network_clear)
+ elif value == NETCONF_OBSTACLE:
+ self.listbox_network_controls.select_row(self.listboxrow_network_specific)
+ elif value == NETCONF_DISABLED:
+ self.listbox_network_controls.select_row(self.listboxrow_network_off)
+
if self.value == value:
return False