Tabs in the Credits window only populate once (#39667)
* Tabs in the Credits window only populate once * Changed functions to RemoveAllChildren()
This commit is contained in:
parent
62e1fe2cba
commit
de6b59cfab
|
|
@ -83,7 +83,7 @@ public sealed partial class CreditsWindow : DefaultWindow
|
|||
|
||||
private async void PopulateAttributions(BoxContainer attributionsContainer, int count)
|
||||
{
|
||||
attributionsContainer.DisposeAllChildren();
|
||||
attributionsContainer.RemoveAllChildren();
|
||||
|
||||
if (_attributions.Count == 0)
|
||||
{
|
||||
|
|
@ -256,6 +256,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
|
||||
|
|
@ -272,6 +274,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
|
||||
|
|
@ -321,6 +325,8 @@ public sealed partial class CreditsWindow : DefaultWindow
|
|||
|
||||
private void PopulateContributors(BoxContainer ss14ContributorsContainer)
|
||||
{
|
||||
ss14ContributorsContainer.RemoveAllChildren();
|
||||
|
||||
Button contributeButton;
|
||||
|
||||
ss14ContributorsContainer.AddChild(new BoxContainer
|
||||
|
|
|
|||
Loading…
Reference in New Issue