Skip to content

Commit c0257ce

Browse files
committed
update README
1 parent 5da776a commit c0257ce

2 files changed

Lines changed: 31 additions & 10 deletions

File tree

OpenHardwareMonitor/UI/SensorNotifyIcon.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ public class SensorNotifyIcon : IDisposable
1010
{
1111
private enum IconKind
1212
{
13-
Regular,
14-
Percent,
13+
Value,
14+
Bar,
1515
Pie,
1616
}
1717

@@ -25,11 +25,11 @@ public SensorNotifyIcon(SystemTray sensorSystemTray, ISensor sensor, PersistentS
2525
_notifyIcon = new NotifyIconAdv();
2626
_iconFactory = new IconFactory();
2727
_iconFactory.Color = settings.GetValue(new Identifier(sensor.Identifier, "traycolor").ToString(), _iconFactory.Color);
28-
if (Enum.TryParse(settings.GetValue(new Identifier(sensor.Identifier, "iconKind").ToString(), IconKind.Regular.ToString()), out IconKind iconKind))
28+
if (Enum.TryParse(settings.GetValue(new Identifier(sensor.Identifier, "iconKind").ToString(), IconKind.Value.ToString()), out IconKind iconKind))
2929
_iconKind = iconKind;
3030
else
3131
{
32-
_iconKind = sensor.SensorType.ValueIsPercent() ? IconKind.Percent : IconKind.Regular;
32+
_iconKind = sensor.SensorType.ValueIsPercent() ? IconKind.Bar : IconKind.Value;
3333
}
3434

3535
var contextMenuStrip = new ContextMenuStrip();
@@ -51,8 +51,8 @@ public SensorNotifyIcon(SystemTray sensorSystemTray, ISensor sensor, PersistentS
5151
if (sensor.SensorType.ValueIsPercent())
5252
{
5353
var iconKindItem = new ToolStripMenuItem("Icon Kind");
54-
iconKindItem.DropDownItems.Add(new ToolStripMenuItem("Value", null, (_, _) => { SetIconKind(IconKind.Regular); }) { Checked = _iconKind == IconKind.Regular });
55-
iconKindItem.DropDownItems.Add(new ToolStripMenuItem("Percent", null, (_, _) => { SetIconKind(IconKind.Percent); }) { Checked = _iconKind == IconKind.Percent });
54+
iconKindItem.DropDownItems.Add(new ToolStripMenuItem("Value", null, (_, _) => { SetIconKind(IconKind.Value); }) { Checked = _iconKind == IconKind.Value });
55+
iconKindItem.DropDownItems.Add(new ToolStripMenuItem("Bar", null, (_, _) => { SetIconKind(IconKind.Bar); }) { Checked = _iconKind == IconKind.Bar });
5656
iconKindItem.DropDownItems.Add(new ToolStripMenuItem("Pie", null, (_, _) => { SetIconKind(IconKind.Pie); }) { Checked = _iconKind == IconKind.Pie });
5757
void SetIconKind(IconKind kind)
5858
{
@@ -149,7 +149,7 @@ public void Update()
149149
{
150150
SensorType.Load or SensorType.Control or SensorType.Level => _iconKind switch
151151
{
152-
IconKind.Percent => _iconFactory.CreatePercentageIcon(Sensor.Value.GetValueOrDefault()),
152+
IconKind.Bar => _iconFactory.CreatePercentageIcon(Sensor.Value.GetValueOrDefault()),
153153
IconKind.Pie => _iconFactory.CreatePercentagePieIcon((byte)Sensor.Value.GetValueOrDefault()),
154154
_ => _iconFactory.CreateTransparentIcon(GetString()),
155155
},

README.md

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
[![Release](https://img.shields.io/github/v/release/HardwareMonitor/openhardwaremonitor)](https://github.com/HardwareMonitor/openhardwaremonitor/releases/latest)
33
[![Downloads](https://img.shields.io/github/downloads/HardwareMonitor/openhardwaremonitor/total?color=ff4f42)](https://github.com/HardwareMonitor/openhardwaremonitor/releases)
44
[![Last commit](https://img.shields.io/github/last-commit/HardwareMonitor/openhardwaremonitor?color=00AD00)](https://github.com/HardwareMonitor/openhardwaremonitor/commits/master)
5-
[![](https://img.shields.io/badge/WINDOWS-7%20%E2%80%93%2011-blue)](https://endoflife.date/windows)
6-
[![](https://img.shields.io/badge/SERVER-2012%20%E2%80%93%202025-blue)](https://endoflife.date/windows-server)
5+
[![](https://img.shields.io/badge/WINDOWS-7%20%E2%80%93%2011-blue)](https://endoflife.date/windows)
6+
[![](https://img.shields.io/badge/SERVER-2012%20%E2%80%93%202025-blue)](https://endoflife.date/windows-server)
77

88
[![Nuget](https://img.shields.io/nuget/v/OpenHardwareMonitorLib)](https://www.nuget.org/packages/OpenHardwareMonitorLib/)
99
[![Nuget](https://img.shields.io/nuget/dt/OpenHardwareMonitorLib?label=nuget-downloads)](https://www.nuget.org/packages/OpenHardwareMonitorLib/)
1010

11-
Open hardware monitor - is free software that can monitor the temperature sensors, fan speeds, voltages, load and clock speeds of your computer.
11+
Open hardware monitor is free software that can monitor the temperature sensors, fan speeds, voltages, load and clock speeds of your computer.
1212

1313
This application is based on the "original" [openhardwaremonitor](https://github.com/openhardwaremonitor/openhardwaremonitor) project.
1414

@@ -52,6 +52,27 @@ Here's a preview of the tray icons and gadget (in Windows 10):
5252

5353
The published version can be obtained from [releases](https://github.com/HardwareMonitor/openhardwaremonitor/releases).
5454

55+
> [!WARNING]
56+
>Microsoft and other major antivirus vendors may have flagged OpenHardwareMonitor as malware. This is a false positive and is not related to a virus or anything similar. Signals from Microsoft usually extend to other antivirus vendors as well.
57+
>OpenHardwareMonitor has a history of being falsely flagged as malware by antivirus vendors (including Defender). This is likely due to its behavior, such as creating a task with administrator privileges to auto-start the application after login, or storing an internal driver in a temporary folder to gain access to hardware resources.
58+
59+
Currently, Defender does not flag this release, but it is likely that future updates may be flagged by Defender's machine learning-based detection systems within a few days of release.
60+
61+
> [!IMPORTANT]
62+
>If Defender or another antivirus detects any part of OpenHardwareMonitor as malware, it may prevent proper work or cause application to fail to start.
63+
> OpenHardwareMonitor will not start if this file exists but is blocked from being loaded.
64+
>We strongly recommend excluding OpenHardwareMonitor's binaries from antivirus scans
65+
66+
> [!TIP]
67+
> You can include the app folder in your antivirus' exclusion list to prevent issues due to antivirus detections
68+
69+
For Defender, you can run the following script in PowerShell as an administrator:
70+
`Add-MpPreference -ExclusionPath "folder_with_app_binaries"`
71+
72+
73+
> [!CAUTION]
74+
> If your antivirus deletes the downloaded app file, you may need to temporarily disable real-time protection or save the file in an excluded folder.
75+
> If you are not comfortable with this process or your antivirus is managed by your company, we do not recommend using OpenHardwareMonitor. Please consider alternative solutions instead.
5576
5677
## Developer information
5778
**Integrate the library in own application**

0 commit comments

Comments
 (0)