Add setting to show process ID

This commit is contained in:
2023-04-02 12:43:52 -04:00
parent f93983e992
commit ebd9dc607b
8 changed files with 72 additions and 11 deletions

View File

@@ -155,7 +155,7 @@ namespace ProcessCpuUsageStatusWindow
var processId = colonPosition == -1 ? string.Empty : processCpuUsage.ProcessName.Substring(colonPosition + 1);
// Format the process information into a string to display
stringBuilder.AppendFormat(Resources.ProcessLine, processName, processCpuUsage.PercentUsage, processId);
stringBuilder.AppendFormat(Settings.Default.ShowProcessId ? Resources.ProcessLineWithProcessId : Resources.ProcessLine, processName, processCpuUsage.PercentUsage, processId);
}
// Add the footer line (if any)