From a362c7d61d705fc19b1a94febfb20eafbd777185 Mon Sep 17 00:00:00 2001 From: "Morgan 'ARR\\!' Allen" Date: Thu, 15 Jan 2026 10:40:47 -0800 Subject: [PATCH] work towards removing API calls from document loading pathway --- freecad/kiconnect/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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