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:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user