Show: don't come back to Start workbench

This caused start page to reappar, and confused people.
reported by tjp in https://forum.freecadweb.org/viewtopic.php?f=3&t=39143
This commit is contained in:
DeepSOIC
2019-09-07 19:53:59 +03:00
committed by wmayer
parent f19e21a224
commit 00b0ccff33

View File

@@ -447,7 +447,12 @@ class TempoVis(object):
def activateWorkbench(self, wb_name):
from .SceneDetails.Workbench import Workbench
self.modify(Workbench(wb_name))
wb = Workbench(wb_name)
if wb.scene_value() == 'StartWorkbench':
#exclusion - don't switch back to Start, as it causes Start page to appear
wb.apply_data(wb_name)
return
self.modify(wb)
#</convenience functions>