Skip to content

Commit

Permalink
Remove "None" item from string selection window
Browse files Browse the repository at this point in the history
Fixes #207
  • Loading branch information
Rampastring committed Nov 9, 2024
1 parent ba6217f commit 47f7dd4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/TSMapEditor/UI/Windows/SelectStringWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ protected override void LbObjectList_SelectedIndexChanged(object sender, EventAr
if (lbObjectList.SelectedItem == null)
{
SelectedObject = null;
panelContent.Text = string.Empty;
return;
}

Expand All @@ -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;
Expand Down

0 comments on commit 47f7dd4

Please sign in to comment.