comparison frontends/src/primitivus/contact_list.py @ 1387:3511ff4b40a0

primitivus (contact_list): fixes hide/show disconnected contacts via keyboard shortcut
author souliane <souliane@mailoo.org>
date Tue, 24 Mar 2015 10:46:42 +0100
parents 017270e6eea4
children 069ad98b360d
comparison
equal deleted inserted replaced
1386:1f3513cfb246 1387:3511ff4b40a0
66 return key 66 return key
67 if key == a_key['STATUS_HIDE']: #user wants to (un)hide contacts' statuses 67 if key == a_key['STATUS_HIDE']: #user wants to (un)hide contacts' statuses
68 self.show_status = not self.show_status 68 self.show_status = not self.show_status
69 self.update() 69 self.update()
70 elif key == a_key['DISCONNECTED_HIDE']: #user wants to (un)hide disconnected contacts 70 elif key == a_key['DISCONNECTED_HIDE']: #user wants to (un)hide disconnected contacts
71 self.host.bridge.setParam(C.SHOW_OFFLINE_CONTACTS, C.str(not self.show_disconnected), "General", profile_key=self.profile) 71 self.host.bridge.setParam(C.SHOW_OFFLINE_CONTACTS, C.boolConst(not self.show_disconnected), "General", profile_key=self.profile)
72 elif key == a_key['RESOURCES_HIDE']: #user wants to (un)hide contacts resources 72 elif key == a_key['RESOURCES_HIDE']: #user wants to (un)hide contacts resources
73 self.showResources(not self.show_resources) 73 self.showResources(not self.show_resources)
74 self.update() 74 self.update()
75 return super(ContactList, self).keypress(size, key) 75 return super(ContactList, self).keypress(size, key)
76 76