Skip to content

Commit

Permalink
Fixing highlight in test fixture issue
Browse files Browse the repository at this point in the history
  • Loading branch information
JustoSenka committed Apr 12, 2019
1 parent b963b36 commit 9b61663
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion RobotEditor/Windows/Base/BaseHierarchyWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ protected virtual void OnCommandRunning(Guid guid)
if (recording == null)
return;

var recordingNode = m_Nodes.FirstOrDefault(node => node.Recording == recording);
// For Hierarchy, recordings are in root, for Test Fixtures, recordings are one level deeper. Supports both
var recNodesToSearch = m_Nodes.First()?.Recording == null ? m_Nodes.SelectMany(n => n.Children) : m_Nodes;
var recordingNode = recNodesToSearch.FirstOrDefault(node => node.Recording == recording);
if (recordingNode == null)
return;

Expand Down

0 comments on commit 9b61663

Please sign in to comment.