Mercurial > libervia-desktop-kivy
changeset 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 | 23d4358803c7 |
children | 0ef216091f2b |
files | cagou/core/cagou_main.py |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
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()