Merge pull request #1362 from IceStormNG/asus-mouse-support

Support for ROG Strix Impact II (P506)
This commit is contained in:
Serge
2023-09-25 15:13:44 +02:00
committed by GitHub
3 changed files with 188 additions and 2 deletions

View File

@@ -1187,8 +1187,16 @@ namespace GHelper
if (m.IsDeviceReady)
{
b.Text = m.GetDisplayName() + "\n" + m.Battery + "%"
+ (m.Charging ? "(" + Properties.Strings.Charging + ")" : "");
if (m.HasBattery())
{
b.Text = m.GetDisplayName() + "\n" + m.Battery + "%"
+ (m.Charging ? "(" + Properties.Strings.Charging + ")" : "");
}
else
{
b.Text = m.GetDisplayName();
}
}
else
{