comparison frontends/src/quick_frontend/quick_app.py @ 1230:3abc6563a0d2

primitivus: implement parameter "Show empty groups"
author souliane <souliane@mailoo.org>
date Mon, 06 Oct 2014 13:54:41 +0200
parents 03661d1b216a
children e56dfe0378a1
comparison
equal deleted inserted replaced
1229:03661d1b216a 1230:3abc6563a0d2
556 self.profiles[profile]['whoami'] = JID(value) 556 self.profiles[profile]['whoami'] = JID(value)
557 elif (namespace, name) == ("Misc", "Watched"): 557 elif (namespace, name) == ("Misc", "Watched"):
558 self.profiles[profile]['watched'] = value.split() 558 self.profiles[profile]['watched'] = value.split()
559 elif (namespace, name) == ('General', C.SHOW_OFFLINE_CONTACTS): 559 elif (namespace, name) == ('General', C.SHOW_OFFLINE_CONTACTS):
560 self.contact_list.showOfflineContacts(C.bool(value)) 560 self.contact_list.showOfflineContacts(C.bool(value))
561 elif (namespace, name) == ('General', C.SHOW_EMPTY_GROUPS):
562 self.contact_list.showEmptyGroups(C.bool(value))
561 563
562 def contactDeletedHandler(self, jid, profile): 564 def contactDeletedHandler(self, jid, profile):
563 target = JID(jid) 565 target = JID(jid)
564 self.contact_list.remove(target) 566 self.contact_list.remove(target)
565 try: 567 try: