mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-23 10:08:00 +02:00
Update attach to process list exclusion
This commit is contained in:
parent
93fcfda1bd
commit
287e7f5642
1 changed files with 10 additions and 3 deletions
|
@ -130,9 +130,16 @@ namespace IDE.ui
|
||||||
mFullProcessList.Clear();
|
mFullProcessList.Clear();
|
||||||
Process.GetProcesses(mFullProcessList);
|
Process.GetProcesses(mFullProcessList);
|
||||||
|
|
||||||
int index = mFullProcessList.FindIndex(scope (p) => p.Id == Process.CurrentId);
|
// Remove ourselves from the list
|
||||||
delete mFullProcessList[index];
|
for (var process in mFullProcessList)
|
||||||
mFullProcessList.RemoveAt(index);
|
{
|
||||||
|
if (process.Id == Process.CurrentId)
|
||||||
|
{
|
||||||
|
delete process;
|
||||||
|
@process.Remove();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void FilterProcesses(bool fullRefresh)
|
void FilterProcesses(bool fullRefresh)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue