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:
@@ -80,7 +80,7 @@ public sealed partial class CreditsWindow : DefaultWindow
|
|||||||
|
|
||||||
private async void PopulateAttributions(BoxContainer attributionsContainer, int count)
|
private async void PopulateAttributions(BoxContainer attributionsContainer, int count)
|
||||||
{
|
{
|
||||||
attributionsContainer.DisposeAllChildren();
|
attributionsContainer.RemoveAllChildren();
|
||||||
|
|
||||||
if (_attributions.Count == 0)
|
if (_attributions.Count == 0)
|
||||||
{
|
{
|
||||||
@@ -253,6 +253,8 @@ public sealed partial class CreditsWindow : DefaultWindow
|
|||||||
|
|
||||||
private void PopulateLicenses(BoxContainer licensesContainer)
|
private void PopulateLicenses(BoxContainer licensesContainer)
|
||||||
{
|
{
|
||||||
|
licensesContainer.RemoveAllChildren();
|
||||||
|
|
||||||
foreach (var entry in CreditsManager.GetLicenses(_resourceManager).OrderBy(p => p.Name))
|
foreach (var entry in CreditsManager.GetLicenses(_resourceManager).OrderBy(p => p.Name))
|
||||||
{
|
{
|
||||||
licensesContainer.AddChild(new Label
|
licensesContainer.AddChild(new Label
|
||||||
@@ -269,6 +271,8 @@ public sealed partial class CreditsWindow : DefaultWindow
|
|||||||
|
|
||||||
private void PopulatePatrons(BoxContainer patronsContainer)
|
private void PopulatePatrons(BoxContainer patronsContainer)
|
||||||
{
|
{
|
||||||
|
patronsContainer.RemoveAllChildren();
|
||||||
|
|
||||||
var patrons = LoadPatrons();
|
var patrons = LoadPatrons();
|
||||||
|
|
||||||
// Do not show "become a patron" button on Steam builds
|
// 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)
|
private void PopulateContributors(BoxContainer ss14ContributorsContainer)
|
||||||
{
|
{
|
||||||
|
ss14ContributorsContainer.RemoveAllChildren();
|
||||||
|
|
||||||
Button contributeButton;
|
Button contributeButton;
|
||||||
|
|
||||||
ss14ContributorsContainer.AddChild(new BoxContainer
|
ss14ContributorsContainer.AddChild(new BoxContainer
|
||||||
|
|||||||
Reference in New Issue
Block a user