Skip to content

Commit e519307

Browse files
committed
Small fix
1 parent db6cfc4 commit e519307

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<PackageProjectUrl>https://github.com/rds1983/Myra</PackageProjectUrl>
77
<RootNamespace>Myra</RootNamespace>
88
<Description>UI Library for MonoGame, FNA and Stride</Description>
9-
<VersionPrefix>1.5.7</VersionPrefix>
9+
<VersionPrefix>1.5.8</VersionPrefix>
1010
<XNAssetsVersion>0.7.3</XNAssetsVersion>
1111
<FontStashSharpVersion>1.3.9</FontStashSharpVersion>
1212
<LangVersion>8.0</LangVersion>

src/Myra/Graphics2D/UI/Selectors/TabControl.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ protected override void InsertItem(TabItem item, int index)
259259
HorizontalAlignment = HorizontalAlignment.Right
260260
};
261261

262-
closeButton.Click += (s, e) => RemoveItem(item);
262+
closeButton.Click += (s, e) => Items.Remove(item);
263263

264264
var style = TabControlStyle;
265265
if (style.CloseButtonStyle != null)
@@ -312,8 +312,6 @@ protected override void RemoveItem(TabItem item)
312312
}
313313

314314
_gridButtons.Widgets.RemoveAt(index);
315-
Items.RemoveAt(index);
316-
317315
if (SelectedItem == item)
318316
{
319317
SelectedItem = null;

0 commit comments

Comments
 (0)