mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Assure gpu mode and refresh rate are set at startup
This commit is contained in:
@@ -534,6 +534,10 @@ namespace GHelper
|
||||
|
||||
settingsForm.SetStartupCheck(scheduler.IsScheduled());
|
||||
|
||||
bool isPlugged = (SystemInformation.PowerStatus.PowerLineStatus == PowerLineStatus.Online);
|
||||
settingsForm.AutoGPUMode(isPlugged ? 1 : 0);
|
||||
settingsForm.AutoScreen(isPlugged ? 1 : 0);
|
||||
|
||||
Application.Run();
|
||||
|
||||
}
|
||||
|
||||
@@ -349,9 +349,6 @@ namespace GHelper
|
||||
}
|
||||
|
||||
|
||||
Application.EnableVisualStyles();
|
||||
Application.Run();
|
||||
|
||||
Program.config.setConfig("performance_mode", PerformanceMode);
|
||||
try
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user