diff --git a/freecad/kiconnect/api.py b/freecad/kiconnect/api.py index 4a5ad78..9605f65 100644 --- a/freecad/kiconnect/api.py +++ b/freecad/kiconnect/api.py @@ -22,6 +22,7 @@ class APIObject(BaseObject): feature.addProperty('App::PropertyBool', 'Connected', 'KiConnect', 'Is socket connected') feature.addProperty('App::PropertyInteger', 'DocumentCount', 'KiConnect', 'Count of open Documnets') + # XXX onDocumentRestored should not be called on creation self.onDocumentRestored(feature) self.ping_connection() @@ -44,7 +45,6 @@ class APIObject(BaseObject): setattr(self, 'boards', {}) self.kicad = KiCad() - self.refresh_polygons() parent = feature.getParent() if not parent: return