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

View File

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