1
0
Fork 0
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:
disarray2077 2022-01-06 18:03:23 -03:00 committed by GitHub
parent 93fcfda1bd
commit 287e7f5642
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)