mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Only refresh sidebar on tab edit if nothing else selected
This commit is contained in:
		| @@ -128,10 +128,6 @@ RED.workspaces = (function() { | ||||
|                             RED.history.push(historyEvent); | ||||
|                             RED.nodes.dirty(true); | ||||
|                             RED.sidebar.config.refresh(); | ||||
|                             var selection = RED.view.selection(); | ||||
|                             if (!selection.nodes && !selection.links) { | ||||
|                                 RED.sidebar.info.refresh(workspace); | ||||
|                             } | ||||
|                             if (changes.hasOwnProperty('disabled')) { | ||||
|                                 RED.nodes.eachNode(function(n) { | ||||
|                                     if (n.z === workspace.id) { | ||||
| @@ -220,7 +216,8 @@ RED.workspaces = (function() { | ||||
|                 if (RED.view.state() != RED.state.IMPORT_DRAGGING) { | ||||
|                     RED.view.state(RED.state.DEFAULT); | ||||
|                 } | ||||
|                 if (workspace_tabs.contains(workspace.id)) { | ||||
|                 var selection = RED.view.selection(); | ||||
|                 if (!selection.nodes && !selection.links && workspace.id === activeWorkspace) { | ||||
|                     RED.sidebar.info.refresh(workspace); | ||||
|                 } | ||||
|                 tabflowEditor.destroy(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user