Calling Restart Button from Run Menu Item done
This commit is contained in:
1 parent
07d2e6abbe
commit
efd529f696
4 files changed
+16
-4
No files matched your search
@@ -44,7 +44,6 @@ function newStrategyPartConstructor () {
|
||||
if (payload.node.savedPayload.floatingObject.isPinned === true) {
|
||||
floatingObject.pinToggle()
|
||||
}
|
||||
payload.node.savedPayload = undefined
|
||||
}
|
||||
|
||||
let strategyPart = newStrategyPart()
|
||||
@@ -55,6 +54,14 @@ function newStrategyPartConstructor () {
|
||||
strategyPart.initialize(payload, menuItemsInitialValues)
|
||||
strategyPart.container.connectToParent(floatingObject.container, false, false, true, true, false, false, true, true, true, true, true)
|
||||
|
||||
if (payload.node.savedPayload !== undefined) {
|
||||
if (payload.node.savedPayload.uiObject.isRunning === true) {
|
||||
strategyPart.isRunning = true
|
||||
canvas.strategySpace.workspace.tradingSystem = payload.node
|
||||
}
|
||||
}
|
||||
payload.node.savedPayload = undefined
|
||||
|
||||
setFloatingObjectBasicProperties(floatingObject, payload)
|
||||
|
||||
floatingLayer.addFloatingObject(floatingObject)
|
||||
|
||||
Reference in new issue
Block a user