Start: Don't switch workbenches if we're not in Start anymore

This commit is contained in:
Yorik van Havre
2018-12-31 16:45:16 -02:00
parent 41fee3bb3d
commit 1a7d3d9a37

View File

@@ -503,7 +503,9 @@ def postStart():
# switch workbench
wb = param.GetString("AutoloadModule","")
if wb:
FreeCADGui.activateWorkbench(wb)
# don't switch workbenches if we are not in Start anymore
if FreeCADGui.activeWorkbench() and (FreeCADGui.activeWorkbench().name() == "StartWorkbench"):
FreeCADGui.activateWorkbench(wb)
# close start tab
cl = param.GetBool("closeStart",False)