Skip to content

Commit

Permalink
Update TuneUpWindowViewModel.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
ivaylo-matov committed Nov 5, 2024
1 parent 2a1414b commit f54bffa
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions TuneUp/TuneUpWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,6 @@ private void CreateGroupNodesForCollection(ObservableCollection<ProfiledNodeView
{
int executionCounter = 1;
var processedNodes = new HashSet<ProfiledNodeViewModel>();
var nodesToAdd = new HashSet<ProfiledNodeViewModel>();

var sortedNodes = collection.OrderBy(n => n.ExecutionOrderNumber).ToList();

Expand Down Expand Up @@ -602,15 +601,7 @@ private void CreateGroupNodesForCollection(ObservableCollection<ProfiledNodeView
node.GroupExecutionMilliseconds = pGroup.GroupExecutionMilliseconds;
}
}
}

GetCollectionViewSource(collection).Dispatcher.Invoke(() =>
{
foreach (var node in nodesToAdd)
{
collection.Add(node);
}
});
}
}

internal void OnNodeExecutionBegin(NodeModel nm)
Expand Down

0 comments on commit f54bffa

Please sign in to comment.