diff src/browser/sat_browser/contact_list.py @ 716:3b91225b457a

server + browser side: blogging refactoring (draft), huge commit sorry: /!\ everything is not working yet, group blog is not working for now - adaptation to backend changes - frontend commons part of blog have been moved to QuickFrontend - (editors) button "WYSIWYG edition" renamed to "preview" - (editors) Shift + [ENTER] is now used to send a text message, [ENTER] to finish a ligne normally - (editors) fixed modifiers handling - global simplification, resulting of the refactoring - with backend refactoring, we are now using PEP again, XEP-0277 compatibility is restored \o/
author Goffi <goffi@goffi.org>
date Sun, 16 Aug 2015 01:51:12 +0200
parents b395d1309936
children 66beef5b943d
line wrap: on
line diff
--- a/src/browser/sat_browser/contact_list.py	Tue Jul 28 22:22:10 2015 +0200
+++ b/src/browser/sat_browser/contact_list.py	Sun Aug 16 01:51:12 2015 +0200
@@ -155,6 +155,10 @@
         self.host.removeListener('avatar', self.avatarListener)
 
     def update(self):
+        # XXX: as update is slow, we avoid many updates on profile plugs
+        # and do them all at once at the end
+        if not self.host._profile_plugged:
+            return
         ### GROUPS ###
         _keys = self._groups.keys()
         try: