From ddaf748e4c84a1a1d82a9f73692ea58a7866f0d7 Mon Sep 17 00:00:00 2001 From: Greg Date: Fri, 17 Feb 2023 19:52:03 -0700 Subject: [PATCH] Make the current debuggee proc clear --- Windows/OrbisLibraryManager/MainWindow.xaml.cs | 2 ++ Windows/OrbisPeeknPoke/MainWindow.xaml.cs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Windows/OrbisLibraryManager/MainWindow.xaml.cs b/Windows/OrbisLibraryManager/MainWindow.xaml.cs index 057594c..8ea63de 100644 --- a/Windows/OrbisLibraryManager/MainWindow.xaml.cs +++ b/Windows/OrbisLibraryManager/MainWindow.xaml.cs @@ -78,6 +78,8 @@ namespace OrbisLibraryManager var proc = TargetManager.SelectedTarget.Process.GetList().Find(x => x.ProcessId == currentProcessId); if (proc != null) CurrentDebuggingProccess.FieldText = $"{proc.Name}({currentProcessId})"; + else + CurrentDebuggingProccess.FieldText = "N/A"; RefreshLibraryList(); } diff --git a/Windows/OrbisPeeknPoke/MainWindow.xaml.cs b/Windows/OrbisPeeknPoke/MainWindow.xaml.cs index 4b45a3f..8338cbf 100644 --- a/Windows/OrbisPeeknPoke/MainWindow.xaml.cs +++ b/Windows/OrbisPeeknPoke/MainWindow.xaml.cs @@ -92,6 +92,8 @@ namespace OrbisPeeknPoke var proc = TargetManager.SelectedTarget.Process.GetList().Find(x => x.ProcessId == currentProcessId); if (proc != null) CurrentDebuggingProccess.FieldText = $"{proc.Name}({currentProcessId})"; + else + CurrentDebuggingProccess.FieldText = "N/A"; } DetachProcess.IsEnabled = Attached;