From 251feaa13c77b1f6eb3211216ca947e4c5b18b02 Mon Sep 17 00:00:00 2001 From: Ben Martens Date: Tue, 23 Apr 2024 11:37:12 -0700 Subject: [PATCH 1/2] Trim values before saving them into the recently used history --- SyncKusto/SettingsWrapper.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SyncKusto/SettingsWrapper.cs b/SyncKusto/SettingsWrapper.cs index 56bab5e..6771feb 100644 --- a/SyncKusto/SettingsWrapper.cs +++ b/SyncKusto/SettingsWrapper.cs @@ -294,6 +294,8 @@ private static List AddRecentItem(List itemList, string item) return itemList; } + item = item.Trim(); + if (itemList.Contains(item)) { // To bubble this to the top we'll first remove it from the list and then the next From 0beb96d8b69c18093a63a27be2b5d4119af80a27 Mon Sep 17 00:00:00 2001 From: Ben Martens Date: Tue, 23 Apr 2024 11:37:31 -0700 Subject: [PATCH 2/2] version bump --- SyncKusto/MainForm.Designer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SyncKusto/MainForm.Designer.cs b/SyncKusto/MainForm.Designer.cs index a822540..4528496 100644 --- a/SyncKusto/MainForm.Designer.cs +++ b/SyncKusto/MainForm.Designer.cs @@ -150,7 +150,7 @@ private void InitializeComponent() this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(81, 13); this.label2.TabIndex = 6; - this.label2.Text = "Build 20240422"; + this.label2.Text = "Build 20240423"; // // spcTargetHolder //