1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 20:42:21 +02:00

Make IDE remove itself from attach to process list

This commit is contained in:
disarray2077 2022-01-06 17:53:06 -03:00 committed by GitHub
parent d778f2dd2f
commit 93fcfda1bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -129,6 +129,10 @@ namespace IDE.ui
ClearAndDeleteItems(mFullProcessList);
mFullProcessList.Clear();
Process.GetProcesses(mFullProcessList);
int index = mFullProcessList.FindIndex(scope (p) => p.Id == Process.CurrentId);
delete mFullProcessList[index];
mFullProcessList.RemoveAt(index);
}
void FilterProcesses(bool fullRefresh)