Battery Health UI

This commit is contained in:
Serge
2023-07-20 20:01:03 +02:00
parent 55a3677a37
commit a358632f41
2 changed files with 5 additions and 2 deletions

View File

@@ -15,7 +15,7 @@
<PlatformTarget>AnyCPU</PlatformTarget>
<ProduceReferenceAssembly>False</ProduceReferenceAssembly>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<AssemblyVersion>1.0</AssemblyVersion>
<AssemblyVersion>0.100</AssemblyVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">

View File

@@ -177,7 +177,10 @@ namespace GHelper
sensorTimer.Enabled = true;
labelBattery.MouseEnter += PanelBattery_MouseEnter;
labelBatteryTitle.MouseEnter += PanelBattery_MouseEnter;
labelBattery.MouseLeave += PanelBattery_MouseLeave;
labelBatteryTitle.MouseLeave += PanelBattery_MouseLeave;
labelModel.Text = AppConfig.GetModelShort() + (ProcessHelper.IsUserAdministrator() ? "." : "");
TopMost = AppConfig.Is("topmost");
@@ -195,7 +198,7 @@ namespace GHelper
private void PanelBattery_MouseLeave(object? sender, EventArgs e)
{
batteryMouseOver = false;
RefreshSensors();
RefreshSensors(true);
}
private void ShowBatteryWear()