work towards removing API calls from document loading pathway

This commit is contained in:
Morgan 'ARR\!' Allen 2026-01-15 10:40:47 -08:00
parent e5c2c90cb2
commit a362c7d61d

View file

@ -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