From 9f147f1c36b7045067cf6e41c638e06ef3dbd67e Mon Sep 17 00:00:00 2001 From: Goffi Date: Sun, 7 Apr 2019 21:06:57 +0200 Subject: [PATCH] quick frontend (app): added debug logs on sync state change + refill contact lists on resync when AUTO_RESYNC is set --- sat_frontends/quick_frontend/quick_app.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sat_frontends/quick_frontend/quick_app.py b/sat_frontends/quick_frontend/quick_app.py index 40ccb2bd..0e21a24e 100644 --- a/sat_frontends/quick_frontend/quick_app.py +++ b/sat_frontends/quick_frontend/quick_app.py @@ -459,8 +459,10 @@ class QuickApp(object): 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 @@ class QuickApp(object): 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