mirror of
https://github.com/SlothDpal/Relaunch-Process.git
synced 2026-10-23 06:14:16 +03:00
Pre-launch verification is unconditional
This commit is contained in:
1 parent
1a576c50c6
commit
7f51166d9e
2 files changed
+2
-23
No files matched your search
@@ -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