Skip to content

Commit fedbcfc

Browse files
committed
tray icon Power hint decimals added
1 parent 42801cc commit fedbcfc

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

OpenHardwareMonitor/UI/SensorNotifyIcon.cs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -207,14 +207,6 @@ private static string GetThroughputValue(float byteCount, byte preferredSufNum =
207207
return new string(result.Take(3).ToArray());
208208
}
209209

210-
private bool IsFontInstalled(string fontName, float fontSize = 12)
211-
{
212-
using (Font fontTester = new Font(fontName, fontSize, FontStyle.Regular, GraphicsUnit.Pixel))
213-
{
214-
return fontTester.Name == fontName;
215-
}
216-
}
217-
218210
private Icon CreateTransparentIcon()
219211
{
220212
string text = GetString();
@@ -349,7 +341,7 @@ public void Update(bool showPercentageIcons)
349341
case SensorType.Flow: format = "\n{0}: {1:F0} L/h"; break;
350342
case SensorType.Control: format = "\n{0}: {1:F1} %"; break;
351343
case SensorType.Level: format = "\n{0}: {1:F1} %"; break;
352-
case SensorType.Power: format = "\n{0}: {1:F0} W"; break;
344+
case SensorType.Power: format = "\n{0}: {1:F1} W"; break;
353345
case SensorType.Data: format = "\n{0}: {1:F0} GB"; break;
354346
case SensorType.Factor: format = "\n{0}: {1:F3}"; break;
355347
case SensorType.IntFactor: format = "\n{0}: {1:F0}"; break;

0 commit comments

Comments
 (0)