]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Tabs in the Credits window only populate once (#39667)
authorBlaine Pavlock <146504016+PavlockBlaine03@users.noreply.github.com>
Fri, 15 Aug 2025 21:55:38 +0000 (16:55 -0500)
committerGitHub <noreply@github.com>
Fri, 15 Aug 2025 21:55:38 +0000 (14:55 -0700)
* Tabs in the Credits window only populate once

* Changed functions to RemoveAllChildren()

Content.Client/Credits/CreditsWindow.xaml.cs

index 61adf40fc577958ee80530d0f23a021a0c6f31ec..050d801170b17d7cbb6c4d74ca628ce7f499e470 100644 (file)
@@ -80,7 +80,7 @@ public sealed partial class CreditsWindow : DefaultWindow
 
     private async void PopulateAttributions(BoxContainer attributionsContainer, int count)
     {
-        attributionsContainer.DisposeAllChildren();
+        attributionsContainer.RemoveAllChildren();
 
         if (_attributions.Count == 0)
         {
@@ -253,6 +253,8 @@ public sealed partial class CreditsWindow : DefaultWindow
 
     private void PopulateLicenses(BoxContainer licensesContainer)
     {
+        licensesContainer.RemoveAllChildren();
+
         foreach (var entry in CreditsManager.GetLicenses(_resourceManager).OrderBy(p => p.Name))
         {
             licensesContainer.AddChild(new Label
@@ -269,6 +271,8 @@ public sealed partial class CreditsWindow : DefaultWindow
 
     private void PopulatePatrons(BoxContainer patronsContainer)
     {
+        patronsContainer.RemoveAllChildren();
+
         var patrons = LoadPatrons();
 
         // Do not show "become a patron" button on Steam builds
@@ -318,6 +322,8 @@ public sealed partial class CreditsWindow : DefaultWindow
 
     private void PopulateContributors(BoxContainer ss14ContributorsContainer)
     {
+        ss14ContributorsContainer.RemoveAllChildren();
+
         Button contributeButton;
 
         ss14ContributorsContainer.AddChild(new BoxContainer