Fix the changelog window being very laggy until a tab is clicked (#27795)

This commit is contained in:
DrSmugleaf 2024-05-07 23:23:26 -07:00 committed by GitHub
parent caa822b9a0
commit 15153d95a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -87,14 +87,12 @@ namespace Content.Client.Changelog
if (!tab.AdminOnly || isAdmin)
{
Tabs.SetTabVisible(i, true);
tab.Visible = true;
visibleTabs++;
firstVisible ??= i;
}
else
{
Tabs.SetTabVisible(i, false);
tab.Visible = false;
}
}