diff --git a/ProcessTracker.Core/Helpers/Enums.cs b/ProcessTracker.Core/Helpers/Enums.cs index ae72939..fe4b793 100644 --- a/ProcessTracker.Core/Helpers/Enums.cs +++ b/ProcessTracker.Core/Helpers/Enums.cs @@ -12,7 +12,8 @@ public enum FieldTypeEnum { Name = 1, Path = 2, - Description = 3, - MainWindowTitle = 4 + CommandLine = 3, + Description = 4, + MainWindowTitle = 5, } } diff --git a/ProcessTracker.Core/Menus/ProcessMenu.cs b/ProcessTracker.Core/Menus/ProcessMenu.cs index 4e10db7..a897d07 100644 --- a/ProcessTracker.Core/Menus/ProcessMenu.cs +++ b/ProcessTracker.Core/Menus/ProcessMenu.cs @@ -411,14 +411,14 @@ public override async Task Select() if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) { // sub menu selection - fieldType = ConsoleHelpers.GetSelectionFromStringArray("Select a filter.", new string[] { "Name", "Path", "Exit" }); - // exit when press 3 - if (fieldType == 3) + fieldType = ConsoleHelpers.GetSelectionFromStringArray("Select a filter.", new string[] { "Name", "Path", "CommandLine", "Exit" }); + // exit when press 4 + if (fieldType == 4) break; } else {// sub menu selection - fieldType = ConsoleHelpers.GetSelectionFromStringArray("Select a filter.", new string[] { "Name", "Path", "Description", "Main Window Title", "Exit" }); + fieldType = ConsoleHelpers.GetSelectionFromStringArray("Select a filter.", new string[] { "Name", "Path", "CommandLine", "Description", "Main Window Title", "Exit" }); // exit when press 5 if (fieldType == 5) break;