Skip to content

Commit a450edc

Browse files
committed
remove hidden sensors from web server data
1 parent c8c5e20 commit a450edc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

OpenHardwareMonitor/Utilities/HttpServer.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,8 @@ private object GenerateJsonForNode(Node n, ref int nodeIndex)
404404
var children = new List<object>();
405405
foreach (Node child in n.Nodes)
406406
{
407+
if (child is SensorNode sn && !sn.IsVisible)
408+
continue;
407409
children.Add(GenerateJsonForNode(child, ref nodeIndex));
408410
}
409411

0 commit comments

Comments
 (0)