mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-23 18:18: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();
|
||||
Process.GetProcesses(mFullProcessList);
|
||||
|
||||
int index = mFullProcessList.FindIndex(scope (p) => p.Id == Process.CurrentId);
|
||||
delete mFullProcessList[index];
|
||||
mFullProcessList.RemoveAt(index);
|
||||
// Remove ourselves from the list
|
||||
for (var process in mFullProcessList)
|
||||
{
|
||||
if (process.Id == Process.CurrentId)
|
||||
{
|
||||
delete process;
|
||||
@process.Remove();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void FilterProcesses(bool fullRefresh)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue