mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-16 21:17:39 +03:00
Fix the Uncategorized Category Not Being Hidden (#628)
<details><summary><h1>Media</h1></summary> <p>  </p> </details> --- # Changelog 🆑 - fix: Fixed the Uncategorized category not being hidden when empty
This commit is contained in:
@@ -1599,7 +1599,7 @@ namespace Content.Client.Preferences.UI
|
||||
|
||||
|
||||
// Hide Uncategorized tab if it's empty, other tabs already shouldn't exist if they're empty
|
||||
_traitsTabs.SetTabVisible(0, uncategorized.Children.Any());
|
||||
_traitsTabs.SetTabVisible(0, uncategorized.Children.First().Children.First().Children.Any());
|
||||
|
||||
// Add fake tabs until tab container is happy
|
||||
for (var i = _traitsTabs.ChildCount - 1; i < _traitsTabs.CurrentTab; i++)
|
||||
@@ -1860,7 +1860,7 @@ namespace Content.Client.Preferences.UI
|
||||
|
||||
|
||||
// Hide Uncategorized tab if it's empty, other tabs already shouldn't exist if they're empty
|
||||
_loadoutsTabs.SetTabVisible(0, uncategorized.Children.Any());
|
||||
_loadoutsTabs.SetTabVisible(0, uncategorized.Children.First().Children.First().Children.Any());
|
||||
|
||||
// Add fake tabs until tab container is happy
|
||||
for (var i = _loadoutsTabs.ChildCount - 1; i < _loadoutsTabs.CurrentTab; i++)
|
||||
|
||||
Reference in New Issue
Block a user