mirror of
https://github.com/Lurkki14/tuxclocker.git
synced 2025-02-25 18:55:24 -06:00
don't show core voltage offset when not available
This commit is contained in:
parent
23b82e125f
commit
2043f54c00
@ -607,11 +607,13 @@ std::vector<TreeNode<DeviceNode>> getVoltageOffset(NvidiaGPUData data) {
|
||||
|
||||
Assignable a{setFunc, range, getFunc, "mV"};
|
||||
|
||||
return {DeviceNode{
|
||||
.name = "Core Voltage Offset",
|
||||
.interface = a,
|
||||
.hash = md5(data.uuid + "Core Voltage Offset"),
|
||||
}};
|
||||
if (getFunc().has_value())
|
||||
return {DeviceNode{
|
||||
.name = "Core Voltage Offset",
|
||||
.interface = a,
|
||||
.hash = md5(data.uuid + "Core Voltage Offset"),
|
||||
}};
|
||||
return {};
|
||||
}
|
||||
|
||||
std::vector<TreeNode<DeviceNode>> getMultiFanRoots(NvidiaGPUData data) {
|
||||
|
Loading…
Reference in New Issue
Block a user