mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Only show battery percentage when the mouse has a battery.
This commit is contained in:
@@ -1136,8 +1136,16 @@ namespace GHelper
|
|||||||
|
|
||||||
if (m.IsDeviceReady)
|
if (m.IsDeviceReady)
|
||||||
{
|
{
|
||||||
b.Text = m.GetDisplayName() + "\n" + m.Battery + "%"
|
if (m.HasBattery())
|
||||||
+ (m.Charging ? "(" + Properties.Strings.Charging + ")" : "");
|
{
|
||||||
|
b.Text = m.GetDisplayName() + "\n" + m.Battery + "%"
|
||||||
|
+ (m.Charging ? "(" + Properties.Strings.Charging + ")" : "");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
b.Text = m.GetDisplayName();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user