[Fixed] Avoid reloading the project is none loaded
This commit is contained in:
parent
795e56b6d7
commit
40526ed012
|
|
@ -148,6 +148,7 @@ class Set_Text_Variables(BasePreFlight): # noqa: F821
|
|||
GS.make_bkp(pro_name)
|
||||
with open(pro_name, 'wt') as f:
|
||||
f.write(json.dumps(data, sort_keys=True, indent=2))
|
||||
if GS.board:
|
||||
# Force a project reload
|
||||
sm = pcbnew.GetSettingsManager()
|
||||
sm.UnloadProject(GS.board.GetProject(), False)
|
||||
|
|
|
|||
Loading…
Reference in New Issue