Skip to content

Commit

Permalink
Start: Don't switch workbenches if we're not in Start anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Dec 31, 2018
1 parent 41fee3b commit 1a7d3d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Mod/Start/StartPage/StartPage.py
Expand Up @@ -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)
Expand Down

0 comments on commit 1a7d3d9

Please sign in to comment.