Skip to content

Commit

Permalink
fix not being able to open mod settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ToniMacaroni committed Aug 5, 2024
1 parent c034079 commit c0b177a
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions SonsSdk/SUI/SettingsRegistry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -580,18 +580,12 @@ public void ParentTo(Transform parent)
}
}

if (UserContentContainer != null)
{
UserContentContainer.RectTransform.SetParent(parent, false);
}
UserContentContainer?.RectTransform.SetParent(parent, false);
}

public void Unparent()
{
if (UserContentContainer != null)
{
UserContentContainer.RectTransform.SetParent(Container.RectTransform, false);
}
UserContentContainer?.RectTransform.SetParent(Container.RectTransform, false);

foreach (var entry in ConfigEntries)
{
Expand Down

0 comments on commit c0b177a

Please sign in to comment.