mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Keybinding fix
This commit is contained in:
@@ -272,6 +272,7 @@ namespace GHelper
|
|||||||
Program.settingsForm.BeginInvoke(Program.settingsForm.CyclePerformanceMode);
|
Program.settingsForm.BeginInvoke(Program.settingsForm.CyclePerformanceMode);
|
||||||
return;
|
return;
|
||||||
case 179: // FN+F4
|
case 179: // FN+F4
|
||||||
|
case 178: // FN+F4
|
||||||
KeyProcess("fnf4");
|
KeyProcess("fnf4");
|
||||||
return;
|
return;
|
||||||
case 189: // Tablet mode
|
case 189: // Tablet mode
|
||||||
@@ -327,11 +328,11 @@ namespace GHelper
|
|||||||
|
|
||||||
static void LaunchProcess(string command = "")
|
static void LaunchProcess(string command = "")
|
||||||
{
|
{
|
||||||
string executable = command.Split(' ')[0];
|
|
||||||
string arguments = command.Substring(executable.Length).Trim();
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
string executable = command.Split(' ')[0];
|
||||||
|
string arguments = command.Substring(executable.Length).Trim();
|
||||||
Process proc = Process.Start(executable, arguments);
|
Process proc = Process.Start(executable, arguments);
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
|
|||||||
@@ -199,7 +199,14 @@ namespace GHelper
|
|||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
base.WndProc(ref m);
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
base.WndProc(ref m);
|
||||||
|
} catch (Exception ex)
|
||||||
|
{
|
||||||
|
Debug.WriteLine(ex.ToString());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void RunToast(string text, ToastIcon? icon = null)
|
public void RunToast(string text, ToastIcon? icon = null)
|
||||||
|
|||||||
Reference in New Issue
Block a user