Improvement, zero time to reconnect
This commit is contained in:
1 parent
d37092b4fd
commit
7c7e11a311
2 files changed
+7
-3
No files matched your search
@@ -13,7 +13,7 @@ function newUiObjectsFromNodes () {
|
||||
|
||||
return thisObject
|
||||
|
||||
function recreateWorkspace (node) {
|
||||
function recreateWorkspace (node, replacingCurrentWorkspace) {
|
||||
mapOfNodes = new Map()
|
||||
tasksToRun = []
|
||||
|
||||
@@ -28,7 +28,11 @@ function newUiObjectsFromNodes () {
|
||||
|
||||
tryToConnectChildrenWithReferenceParents()
|
||||
|
||||
setTimeout(runTasks, 70000) // We need to wait all tasks that were potentially running to stop
|
||||
if (replacingCurrentWorkspace === true) {
|
||||
setTimeout(runTasks, 70000) // We need to wait all tasks that were potentially running to stop
|
||||
} else {
|
||||
runTasks()
|
||||
}
|
||||
}
|
||||
|
||||
function runTasks () {
|
||||
|
||||
@@ -132,7 +132,7 @@ function newWorkspace () {
|
||||
workingAtTask++
|
||||
break
|
||||
case 4:
|
||||
functionLibraryUiObjectsFromNodes.recreateWorkspace(thisObject.workspaceNode)
|
||||
functionLibraryUiObjectsFromNodes.recreateWorkspace(thisObject.workspaceNode, true)
|
||||
workingAtTask++
|
||||
break
|
||||
case 5:
|
||||
|
||||
Reference in new issue
Block a user