mirror of
https://github.com/SlothDpal/Relaunch-Process.git
synced 2026-02-22 17:27:38 +03:00
Pre-launch verification is unconditional
This commit is contained in:
8
Form1.cs
8
Form1.cs
@@ -315,20 +315,16 @@ namespace Process_Auto_Relaunch
|
||||
|
||||
private void ProcessStart(string path, string args)
|
||||
{
|
||||
if (checkBoxCheckProcess.Checked)
|
||||
if (ProcessByNameIsRuning(path))
|
||||
{
|
||||
if (ProcessByNameIsRuning(path))
|
||||
{
|
||||
// Процесс уже запущен
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Процесс не запущен
|
||||
WatchedProcess = Process.Start(path, args);
|
||||
cpuLastTime = 0;
|
||||
cpuMeasureTimer.Start();
|
||||
Status($"Процесс {ProcessName} был запущен.", NotifyLevel.logAlways);
|
||||
Status($"Процесс {ProcessName} запущен.", NotifyLevel.logAlways);
|
||||
}
|
||||
|
||||
private void BackgroundWorkerDoWork(object sender, System.ComponentModel.DoWorkEventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user