changeset 2898:fc78d53f0ffa

quick frontend (app): added debug logs on sync state change + refill contact lists on resync when AUTO_RESYNC is set
author Goffi <goffi@goffi.org>
date Sun, 07 Apr 2019 21:06:57 +0200 (2019-04-07)
parents 82d8243e6ad1
children 5b0f897689b7
files sat_frontends/quick_frontend/quick_app.py
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/sat_frontends/quick_frontend/quick_app.py	Sun Apr 07 20:59:34 2019 +0200
+++ b/sat_frontends/quick_frontend/quick_app.py	Sun Apr 07 21:06:57 2019 +0200
@@ -459,8 +459,10 @@
             or if connection has been lost and a reconnection is needed
         """
         if state:
+            log.debug(u"we are synchronised with server")
             if self.AUTO_RESYNC:
                 # we are resynchronising all widgets
+                log.debug(u"doing a full widgets resynchronisation")
                 for w in self.widgets:
                     try:
                         resync = w.resync
@@ -468,8 +470,11 @@
                         pass
                     else:
                         resync()
+                self.contact_lists.fill()
+
             self._sync = state
         else:
+            log.debug(u"we have lost synchronisation with server")
             self._sync = state
             # we've lost synchronisation, all widgets must be notified
             # note: this is always called independently of AUTO_RESYNC