Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rds1983 committed Sep 27, 2024
1 parent db6cfc4 commit e519307
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<PackageProjectUrl>https://github.com/rds1983/Myra</PackageProjectUrl>
<RootNamespace>Myra</RootNamespace>
<Description>UI Library for MonoGame, FNA and Stride</Description>
<VersionPrefix>1.5.7</VersionPrefix>
<VersionPrefix>1.5.8</VersionPrefix>
<XNAssetsVersion>0.7.3</XNAssetsVersion>
<FontStashSharpVersion>1.3.9</FontStashSharpVersion>
<LangVersion>8.0</LangVersion>
Expand Down
4 changes: 1 addition & 3 deletions src/Myra/Graphics2D/UI/Selectors/TabControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ protected override void InsertItem(TabItem item, int index)
HorizontalAlignment = HorizontalAlignment.Right
};

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

var style = TabControlStyle;
if (style.CloseButtonStyle != null)
Expand Down Expand Up @@ -312,8 +312,6 @@ protected override void RemoveItem(TabItem item)
}

_gridButtons.Widgets.RemoveAt(index);
Items.RemoveAt(index);

if (SelectedItem == item)
{
SelectedItem = null;
Expand Down

0 comments on commit e519307

Please sign in to comment.