From c0b177a3a1ed005e4b6e1d8303e4eb647b41d5e0 Mon Sep 17 00:00:00 2001 From: Toni Macaroni <62687014+ToniMacaroni@users.noreply.github.com> Date: Mon, 5 Aug 2024 08:14:54 +0200 Subject: [PATCH] fix not being able to open mod settings --- SonsSdk/SUI/SettingsRegistry.cs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/SonsSdk/SUI/SettingsRegistry.cs b/SonsSdk/SUI/SettingsRegistry.cs index ccca495..a4b8edb 100644 --- a/SonsSdk/SUI/SettingsRegistry.cs +++ b/SonsSdk/SUI/SettingsRegistry.cs @@ -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) {