1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-20 21:08:06 +01:00

Integrated encryption into wired profiles.

This commit is contained in:
Joe MacMahon
2012-01-29 17:51:45 +00:00
parent 20b4b62c44
commit af3c388a08
2 changed files with 7 additions and 2 deletions

View File

@@ -340,7 +340,7 @@ class WiredSettingsDialog(AdvancedSettingsDialog):
self.chkbox_encryption = gtk.CheckButton(_('Use Encryption'))
# Make the vbox to hold the encryption stuff.
self.vbox_encrypt_info = gtk.VBox(False, 0)
self.chkbox_encryption.set_active(not wired.GetWiredProperty('encryption_enabled') is None)
self.chkbox_encryption.set_active(bool(wired.GetWiredProperty('encryption_enabled')))
self.combo_encryption.set_sensitive(False)
self.encrypt_types = misc.LoadEncryptionMethods(wired = True)
@@ -404,6 +404,10 @@ class WiredSettingsDialog(AdvancedSettingsDialog):
self.txt_dhcp_hostname.set_text(dhcphname)
self.reset_static_checkboxes()
self.chkbox_encryption.set_active(bool(wired.GetWiredProperty('encryption_enabled')))
self.change_encrypt_method()
self.toggle_encryption()
def save_settings(self):
# Check encryption info
encrypt_info = self.encryption_info