Name method more appropriate

This commit is contained in:
Philipp Hörist 2017-05-18 21:45:31 +02:00
parent 3335482345
commit 020e4e0308
1 changed files with 2 additions and 2 deletions

View File

@ -422,10 +422,10 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools):
"%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