Animatrix tweaks

This commit is contained in:
seerge
2023-03-26 19:31:41 +02:00
parent c1d23159a0
commit ea2dc7b75d
4 changed files with 30 additions and 17 deletions

View File

@@ -32,6 +32,15 @@ namespace GHelper
// The main entry point for the application
public static void Main()
{
if (Process.GetProcesses().Count(p => p.ProcessName == "GHelper") > 1)
{
MessageBox.Show("G-Helper is already running. Check system tray for an icon.", "App already running", MessageBoxButtons.OK);
Application.Exit();
return;
}
try
{
wmi = new ASUSWmi();