Refresh the mouse only every 20s in background. When GHelper becomes visible, force refresh all devices.

This commit is contained in:
IceStormNG
2023-07-30 10:46:10 +02:00
parent 505b3a9e4a
commit b0733d9254
2 changed files with 17 additions and 1 deletions

View File

@@ -236,11 +236,16 @@ namespace GHelper
{
screenControl.InitScreen();
gpuControl.InitXGM();
Task.Run((Action)PeripheralsProvider.RefreshBatteryForAllDevices);
Task.Run((Action)RefreshPeripheralsBattery);
updateControl.CheckForUpdates();
}
}
private void RefreshPeripheralsBattery()
{
PeripheralsProvider.RefreshBatteryForAllDevices(true);
}
private void ButtonUpdates_Click(object? sender, EventArgs e)
{
if (updates == null || updates.Text == "")