primitivus (contact_list): fixes hide/show disconnected contacts via keyboard shortcut

This commit is contained in:
souliane 2015-03-24 10:46:42 +01:00
commit 1a03845539

View file

@ -68,7 +68,7 @@ class ContactList(PrimitivusWidget, QuickContactList):
self.show_status = not self.show_status
self.update()
elif key == a_key['DISCONNECTED_HIDE']: #user wants to (un)hide disconnected contacts
self.host.bridge.setParam(C.SHOW_OFFLINE_CONTACTS, C.str(not self.show_disconnected), "General", profile_key=self.profile)
self.host.bridge.setParam(C.SHOW_OFFLINE_CONTACTS, C.boolConst(not self.show_disconnected), "General", profile_key=self.profile)
elif key == a_key['RESOURCES_HIDE']: #user wants to (un)hide contacts resources
self.showResources(not self.show_resources)
self.update()