comparison frontends/src/quick_frontend/quick_app.py @ 1229:03661d1b216a

primitivus: implement "Show offline contacts" parameter (sync with "DISCONNECTED_HIDE" action key)
author souliane <souliane@mailoo.org>
date Mon, 06 Oct 2014 12:44:58 +0200
parents 802b7e6bf098
children 3abc6563a0d2
comparison
equal deleted inserted replaced
1228:2e1b4e7c8eb8 1229:03661d1b216a
554 if (namespace, name) == ("Connection", "JabberID"): 554 if (namespace, name) == ("Connection", "JabberID"):
555 log.debug(_("Changing JID to %s") % value) 555 log.debug(_("Changing JID to %s") % value)
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):
560 self.contact_list.showOfflineContacts(C.bool(value))
559 561
560 def contactDeletedHandler(self, jid, profile): 562 def contactDeletedHandler(self, jid, profile):
561 target = JID(jid) 563 target = JID(jid)
562 self.contact_list.remove(target) 564 self.contact_list.remove(target)
563 try: 565 try: