[KiKit Present][Fixed] Problems using pcb from output and no prj
This commit is contained in:
parent
0665cea3ff
commit
1763f809c7
|
|
@ -584,6 +584,8 @@ class GS(object):
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def reload_project(pro_name):
|
def reload_project(pro_name):
|
||||||
|
if pro_name is None:
|
||||||
|
return
|
||||||
sm = pcbnew.GetSettingsManager()
|
sm = pcbnew.GetSettingsManager()
|
||||||
sm.UnloadProject(GS.board.GetProject(), False)
|
sm.UnloadProject(GS.board.GetProject(), False)
|
||||||
assert sm.LoadProject(pro_name)
|
assert sm.LoadProject(pro_name)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue