Add support for battery monitoring (#612)

Thanks to @EMN-CSharp.
This commit is contained in:
EMN-CSharp
2022-02-07 17:05:36 +01:00
committed by GitHub
parent 0ed564e7c6
commit 5152b435fc
19 changed files with 844 additions and 149 deletions
+3
View File
@@ -76,6 +76,9 @@ namespace LibreHardwareMonitor.UI
case SensorType.TimeSpan:
Format = "{0:g}";
break;
case SensorType.Energy:
Format = "{0:F0} mWh";
break;
}
bool hidden = settings.GetValue(new Identifier(sensor.Identifier, "hidden").ToString(), sensor.IsDefaultHidden);