From 47f7dd43378728e739ecf9c0623b5534331f925d Mon Sep 17 00:00:00 2001 From: Rampastring Date: Sat, 9 Nov 2024 13:04:07 +0200 Subject: [PATCH] Remove "None" item from string selection window Fixes #207 --- src/TSMapEditor/UI/Windows/SelectStringWindow.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/TSMapEditor/UI/Windows/SelectStringWindow.cs b/src/TSMapEditor/UI/Windows/SelectStringWindow.cs index 9825395a..7bd49178 100644 --- a/src/TSMapEditor/UI/Windows/SelectStringWindow.cs +++ b/src/TSMapEditor/UI/Windows/SelectStringWindow.cs @@ -31,6 +31,7 @@ protected override void LbObjectList_SelectedIndexChanged(object sender, EventAr if (lbObjectList.SelectedItem == null) { SelectedObject = null; + panelContent.Text = string.Empty; return; } @@ -43,8 +44,6 @@ protected override void ListObjects() lbObjectList.Clear(); panelContent.Text = string.Empty; - lbObjectList.AddItem(new XNAListBoxItem() { Text = "None" }); - foreach (CsfString csf in map.StringTable.GetStringEnumerator()) { string preview;