Skip to content

Commit

Permalink
prevent The Collapse when you hide unusable loadouts
Browse files Browse the repository at this point in the history
  • Loading branch information
DEATHB4DEFEAT committed May 5, 2024
1 parent 55801c8 commit 2f154e9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1694,6 +1694,13 @@ out _
if (!uncategorized.Children.Any())
_loadoutsTabs.SetTabVisible(0, false);

// Add fake tabs until tab container is happy
for (var i = _loadoutsTabs.ChildCount - 1; i < _loadoutsTabs.CurrentTab; i++)
{
_loadoutsTabs.AddChild(new BoxContainer());
_loadoutsTabs.SetTabVisible(i + 1, false);
}

UpdateLoadoutPreferences();
}

Expand Down

0 comments on commit 2f154e9

Please sign in to comment.