1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Merge branch 'pr_2523' into dev

This commit is contained in:
Nick O'Leary 2020-03-31 15:59:31 +01:00
commit 04da13eaf9
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
2 changed files with 10 additions and 4 deletions

View File

@ -1599,8 +1599,9 @@ RED.nodes = (function() {
}); });
removeLinks.forEach(removeLink); removeLinks.forEach(removeLink);
// Force the redraw to be synchronous so the view updates
RED.view.redraw(true); // *now* and removes the unknown node
RED.view.redraw(true, true);
var result = importNodes(reimportList,false); var result = importNodes(reimportList,false);
var newNodeMap = {}; var newNodeMap = {};
result[0].forEach(function(n) { result[0].forEach(function(n) {

View File

@ -4559,13 +4559,18 @@ if (DEBUG_EVENTS) { console.warn("nodeMouseDown", mouse_mode,d); }
mouse_mode = state; mouse_mode = state;
} }
}, },
updateActive: updateActiveNodes, updateActive: updateActiveNodes,
redraw: function(updateActive) { redraw: function(updateActive, syncRedraw) {
if (updateActive) { if (updateActive) {
updateActiveNodes(); updateActiveNodes();
updateSelection(); updateSelection();
} }
redraw(); if (syncRedraw) {
_redraw();
} else {
redraw();
}
}, },
focus: focusView, focus: focusView,
importNodes: importNodes, importNodes: importNodes,