Mercurial > libervia-desktop-kivy
diff cagou/core/cagou_main.py @ 272:c4990a7d5dbd
core: check if resync exist in widget before calling it
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 20 Mar 2019 09:29:44 +0100 |
parents | 896f78760b63 |
children | 7d5297984191 |
line wrap: on
line diff
--- a/cagou/core/cagou_main.py Wed Mar 20 09:29:44 2019 +0100 +++ b/cagou/core/cagou_main.py Wed Mar 20 09:29:44 2019 +0100 @@ -438,7 +438,12 @@ # so we must call resync for widgets which are already visible if state: for w in self.visible_widgets: - w.resync() + try: + resync = w.resync + except AttributeError: + pass + else: + resync() def onBridgeConnected(self): super(Cagou, self).onBridgeConnected()