Skip to content

Commit dc1e781

Browse files
committed
hide IntelGpu if CPU monitoring is not enabled
1 parent 9d76857 commit dc1e781

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

OpenHardwareMonitorLib/Hardware/Computer.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,9 @@ public bool IsGpuEnabled
167167
{
168168
Add(new AmdGpuGroup(_settings));
169169
Add(new NvidiaGroup(_settings));
170-
Add(new IntelGpuGroup(GetIntelCpus(), _settings));
170+
171+
if (_cpuEnabled)
172+
Add(new IntelGpuGroup(GetIntelCpus(), _settings));
171173
}
172174
else
173175
{
@@ -526,7 +528,9 @@ private void AddGroups()
526528
{
527529
Add(new AmdGpuGroup(_settings));
528530
Add(new NvidiaGroup(_settings));
529-
Add(new IntelGpuGroup(GetIntelCpus(), _settings));
531+
532+
if (_cpuEnabled)
533+
Add(new IntelGpuGroup(GetIntelCpus(), _settings));
530534
}
531535

532536
if (_controllerEnabled)

0 commit comments

Comments
 (0)