Do not refresh battery on main thread.

This commit is contained in:
IceStormNG
2023-07-27 10:14:06 +02:00
parent acaa8bc523
commit 6e4b5226f5

View File

@@ -236,7 +236,7 @@ namespace GHelper
{
screenControl.InitScreen();
gpuControl.InitXGM();
PeripheralsProvider.RefreshBatteryForAllDevices();
Task.Run((Action)PeripheralsProvider.RefreshBatteryForAllDevices);
updateControl.CheckForUpdates();
}
}