Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions ProcessTracker.Core/Helpers/Enums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ public enum FieldTypeEnum
{
Name = 1,
Path = 2,
Description = 3,
MainWindowTitle = 4
CommandLine = 3,
Description = 4,
MainWindowTitle = 5,
}
}
8 changes: 4 additions & 4 deletions ProcessTracker.Core/Menus/ProcessMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down