dont try to create Boards if there on no documents on the API

This commit is contained in:
Morgan 'ARR\!' Allen 2025-04-30 13:51:56 -07:00
parent f1d2800354
commit c66b554b46

View file

@ -28,7 +28,7 @@ class Project:
self.API = api.makeAPI(self.feature)
if self.API.Proxy.is_connected:
if self.API.Proxy.is_connected and self.API.DocumentCount > 0:
kicad_board = self.API.Proxy.kicad.get_board()
self.board = Board(kicad_board, self.feature)