mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Battery Health UI
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
<ProduceReferenceAssembly>False</ProduceReferenceAssembly>
|
<ProduceReferenceAssembly>False</ProduceReferenceAssembly>
|
||||||
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
|
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
|
||||||
<AssemblyVersion>1.0</AssemblyVersion>
|
<AssemblyVersion>0.100</AssemblyVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||||
|
|||||||
@@ -177,7 +177,10 @@ namespace GHelper
|
|||||||
sensorTimer.Enabled = true;
|
sensorTimer.Enabled = true;
|
||||||
|
|
||||||
labelBattery.MouseEnter += PanelBattery_MouseEnter;
|
labelBattery.MouseEnter += PanelBattery_MouseEnter;
|
||||||
|
labelBatteryTitle.MouseEnter += PanelBattery_MouseEnter;
|
||||||
|
|
||||||
labelBattery.MouseLeave += PanelBattery_MouseLeave;
|
labelBattery.MouseLeave += PanelBattery_MouseLeave;
|
||||||
|
labelBatteryTitle.MouseLeave += PanelBattery_MouseLeave;
|
||||||
|
|
||||||
labelModel.Text = AppConfig.GetModelShort() + (ProcessHelper.IsUserAdministrator() ? "." : "");
|
labelModel.Text = AppConfig.GetModelShort() + (ProcessHelper.IsUserAdministrator() ? "." : "");
|
||||||
TopMost = AppConfig.Is("topmost");
|
TopMost = AppConfig.Is("topmost");
|
||||||
@@ -195,7 +198,7 @@ namespace GHelper
|
|||||||
private void PanelBattery_MouseLeave(object? sender, EventArgs e)
|
private void PanelBattery_MouseLeave(object? sender, EventArgs e)
|
||||||
{
|
{
|
||||||
batteryMouseOver = false;
|
batteryMouseOver = false;
|
||||||
RefreshSensors();
|
RefreshSensors(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ShowBatteryWear()
|
private void ShowBatteryWear()
|
||||||
|
|||||||
Reference in New Issue
Block a user