Commit 020e4e03 authored by Philipp Hörist's avatar Philipp Hörist

Name method more appropriate

parent 33354823
......@@ -422,10 +422,10 @@ def add_window_actions(self):
"%s-encryptiongroup" % self.contact.jid,
GLib.VariantType.new("s"),
GLib.Variant("s", self.encryption or 'disabled'))
action.connect("change-state", self.activate_encryption)
action.connect("change-state", self.change_encryption)
self.parent_win.window.add_action(action)
def activate_encryption(self, action, param):
def change_encryption(self, action, param):
encryption = param.get_string()
if encryption == 'disabled':
encryption = None
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment