mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Removed notification if XGM toggle happens via hotkey
This commit is contained in:
@@ -284,7 +284,7 @@ namespace GHelper.Gpu
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ToggleXGM()
|
public void ToggleXGM(bool silent = false)
|
||||||
{
|
{
|
||||||
|
|
||||||
Task.Run(async () =>
|
Task.Run(async () =>
|
||||||
@@ -296,6 +296,13 @@ namespace GHelper.Gpu
|
|||||||
XGM.Reset();
|
XGM.Reset();
|
||||||
HardwareControl.KillGPUApps();
|
HardwareControl.KillGPUApps();
|
||||||
|
|
||||||
|
if (silent)
|
||||||
|
{
|
||||||
|
Program.acpi.DeviceSet(AsusACPI.GPUXG, 0, "GPU XGM");
|
||||||
|
await Task.Delay(TimeSpan.FromSeconds(15));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
DialogResult dialogResult = MessageBox.Show("Did you close all applications running on XG Mobile?", "Disabling XG Mobile", MessageBoxButtons.YesNo);
|
DialogResult dialogResult = MessageBox.Show("Did you close all applications running on XG Mobile?", "Disabling XG Mobile", MessageBoxButtons.YesNo);
|
||||||
if (dialogResult == DialogResult.Yes)
|
if (dialogResult == DialogResult.Yes)
|
||||||
{
|
{
|
||||||
@@ -303,6 +310,7 @@ namespace GHelper.Gpu
|
|||||||
await Task.Delay(TimeSpan.FromSeconds(15));
|
await Task.Delay(TimeSpan.FromSeconds(15));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
@@ -372,7 +372,7 @@ namespace GHelper.Input
|
|||||||
SetBrightness(10);
|
SetBrightness(10);
|
||||||
break;
|
break;
|
||||||
case Keys.F3:
|
case Keys.F3:
|
||||||
Program.settingsForm.gpuControl.ToggleXGM();
|
Program.settingsForm.gpuControl.ToggleXGM(true);
|
||||||
break;
|
break;
|
||||||
case Keys.F14:
|
case Keys.F14:
|
||||||
Program.settingsForm.gpuControl.SetGPUMode(AsusACPI.GPUModeEco);
|
Program.settingsForm.gpuControl.SetGPUMode(AsusACPI.GPUModeEco);
|
||||||
|
|||||||
Reference in New Issue
Block a user