Getting Saved Running Status Working
This commit is contained in:
1 parent
efd529f696
commit
2046a96dc5
2 files changed
+6
-1
No files matched your search
@@ -19,6 +19,7 @@ function newStrategyPart () {
|
||||
isExecuting: undefined,
|
||||
isRunning: undefined,
|
||||
run: run,
|
||||
setRunningStatus: setRunningStatus,
|
||||
getReadyToAttach: getReadyToAttach,
|
||||
showAvailabilityToAttach: showAvailabilityToAttach,
|
||||
highlight: highlight,
|
||||
@@ -312,6 +313,10 @@ function newStrategyPart () {
|
||||
function run () {
|
||||
canvas.strategySpace.workspace.tradingSystem = thisObject.payload.node
|
||||
canvas.cockpitSpace.restartSimulation.restart()
|
||||
setRunningStatus()
|
||||
}
|
||||
|
||||
function setRunningStatus () {
|
||||
thisObject.isRunning = true
|
||||
runningCounter = 30
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ function newStrategyPartConstructor () {
|
||||
|
||||
if (payload.node.savedPayload !== undefined) {
|
||||
if (payload.node.savedPayload.uiObject.isRunning === true) {
|
||||
strategyPart.isRunning = true
|
||||
strategyPart.setRunningStatus()
|
||||
canvas.strategySpace.workspace.tradingSystem = payload.node
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user