mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Removed scheduler call on each run
This commit is contained in:
@@ -485,7 +485,7 @@ public class NativeMethods
|
||||
|
||||
try
|
||||
{
|
||||
var devices = GetAllDevices();
|
||||
var devices = GetAllDevices().ToArray();
|
||||
int count = 0, displayNum = -1;
|
||||
|
||||
foreach (var device in devices)
|
||||
|
||||
@@ -144,6 +144,10 @@ namespace GHelper
|
||||
case PBT_APMRESUMEAUTOMATIC:
|
||||
settingsForm.BeginInvoke(delegate
|
||||
{
|
||||
// Fix for bugging buios on wake up
|
||||
Program.wmi.DeviceSet(ASUSWmi.PerformanceMode, (config.getConfig("performance_mode")+1) % 3);
|
||||
Thread.Sleep(500);
|
||||
|
||||
SetAutoModes();
|
||||
});
|
||||
break;
|
||||
|
||||
@@ -1028,7 +1028,9 @@ namespace GHelper
|
||||
|
||||
public void SetStartupCheck(bool status)
|
||||
{
|
||||
checkStartup.CheckedChanged -= CheckStartup_CheckedChanged;
|
||||
checkStartup.Checked = status;
|
||||
checkStartup.CheckedChanged += CheckStartup_CheckedChanged;
|
||||
}
|
||||
|
||||
public void SetBatteryChargeLimit(int limit)
|
||||
|
||||
@@ -22,7 +22,7 @@ public class Startup
|
||||
|
||||
var userId = WindowsIdentity.GetCurrent().Name;
|
||||
|
||||
//Debug.WriteLine(strExeFilePath);
|
||||
Debug.WriteLine(strExeFilePath);
|
||||
TaskDefinition td = TaskService.Instance.NewTask();
|
||||
td.RegistrationInfo.Description = "GHelper Auto Start";
|
||||
td.Triggers.Add(new LogonTrigger { UserId = userId, });
|
||||
|
||||
Reference in New Issue
Block a user