Mercurial > libervia-backend
diff frontends/src/quick_frontend/quick_contact_list.py @ 1442:6ce18c4e5708
quick_frontend: display over whole alerts counter
author | souliane <souliane@mailoo.org> |
---|---|
date | Mon, 20 Jul 2015 10:23:58 +0200 |
parents | ba09cd879343 |
children | c74015dc2785 |
line wrap: on
line diff
--- a/frontends/src/quick_frontend/quick_contact_list.py Tue Jul 14 16:49:29 2015 +0200 +++ b/frontends/src/quick_frontend/quick_contact_list.py Mon Jul 20 10:23:58 2015 +0200 @@ -272,6 +272,7 @@ self._special_extras.clear() self._roster.clear() self._alerts.clear() + self.host.updateAlertsCounter() self.update() def setContact(self, entity, groups=None, attributes=None, in_roster=False): @@ -466,6 +467,7 @@ """ self._alerts.add(entity) self.update() + self.host.updateAlertsCounter() def removeAlert(self, entity, use_bare_jid=True): """Eventually remove an alert on the entity (usually for a waiting message). @@ -482,6 +484,7 @@ else: self._alerts.discard(entity) self.update() + self.host.updateAlertsCounter() def _showOfflineContacts(self, show_str): self.showOfflineContacts(C.bool(show_str))